Need it in C++ 3.P.822, Problem 9 (20 pts) 9. Consider the following base and de
ID: 3710246 • Letter: N
Question
Need it in C++
3.P.822, Problem 9 (20 pts) 9. Consider the following base and derived class declarations class BaseClass public: private: void BaseAlpha O void BaseBetaO; 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 di- rectly C. ist all member functions that a client of the class may invoke.Explanation / Answer
(a) Private data members of BaseClass : baseField
Private data members of DerivedClass : derivedField
(b) Private data members of BaseClass that it's member functions can reference directly: baseField
Private data members of DerivedClass that it's member functions can reference directly: derivedField
(c) For BaseClass BaseBeta() and BaseAlpha() can invoke each other
For DerivedClass BaseAlpha() can be invoked by DerivedAlpha() and DerivedBeta(),
DerivedAlpha() and DerivedBeta() can invoke each other
(d) Client of BaseClass can invoke BaseAlpha()
Client of DerivedClass can invoke BaseAlpha(), DerivedAlpha() and DerivedBeta()
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.