A Moving to another question will save this response. Question 37 Based on the f
ID: 3578729 • 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.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.