Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A Moving to another question will save this response. Question 37 Based on the f

ID: 3580729 • Letter: A

Question

A Moving to another question will save this response. Question 37 Based on the following declaration of the sportsman class, and that Footballer inherits from the s class Sportsman public: Sportsman Sportsman (const string& name) Sportsman (double salary), Sportsman (const string& name, double salary)s void setName (const string& newName)s string getName const, private: string name double salary, A The Footballer class inherits name and salary, but Footballer functions can only change the val o B. The Footballer class inherits name and salary, but Footballer functions cannot change the valu C. The Footballer class does not inherit the private data members. o D. A Footballer object has direct access to the name and salary inherited data members. A Moving to another question will save this responso.

Explanation / Answer

Answer:

Option B

The Footballer class inherits name and salary, but Footballer functions can only change the values of the name data member.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote