What must happen to allow private members of a class to be inherited by a derived class?
What will be an ideal response?
The private members must be declared as protected (or public) for the derived class to inherit the data.
Computer Science & Information Technology
You might also like to view...
________ charges for services rendered but not actually performed
Fill in the blank(s) with correct word
Computer Science & Information Technology
Assume the function AdvertisingRatio is a pure virtual function. Which prototype would a programmer use in the class declaration for the class Media?
A. void virtual AdvertisingRatio() = 0; B. virtual void AdvertisingRatio() C. virtual void AdvertisingRatio() = 0; D. void Media::AdvertisingRatio() = 0;
Computer Science & Information Technology