Consider the following base and derived class declarations: class BaseClass { pu
ID: 3529189 • Letter: C
Question
Consider the following base and derived class declarations: class BaseClass { public : void BaseAlpha(); private : void BaseBeta(); float baseField; }; class DerivedClass : public BaseClass { public : void DerivedAlpha(); void DerivedBeta(); private : int derivedField; }; For each class do the following: a. List all private data members. b. List all private data members that the class's member functions can reference directly. c. List all member functions that the class's members can invoke. d. List all member functions that a client of the class may invoke.Explanation / Answer
For BaseClass
a. float baseField;
b. float baseField;
c. void BaseAlpha(); void BaseBeta();
d. void BaseAlpha();
For ChildClass
a. int derivedField;
b. int derivedField;
c. void BaseAlpha(); void DerivedAlpha(); void DerivedBeta();
d. void BaseAlpha(); void DerivedAlpha(); void DerivedBeta();
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.