Explain how in a public inheritance, the members of the base class are inherited by a derived class. (8) Explain the difference between the private and protected members of a class. (8) Explain the...


Explain how in a public inheritance, the members of the base class are inherited by a derived class. (8)


Explain the difference between the private and protected members of a class. (8)


Explain the difference between the protected and public members of a class. (8)


Assume the declaration of Exercise 24. (8)


a. Write the statements that derive the class myClass from class base as a protected inheritance.


b. Determine which members of class base are private, protected, and public in class myClass.




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here