Assigned Reading:
Handouts (available on-line):
Topics Covered:
In the header file for the Package class, we declare the Package class to be a private derivation of the Box class in the following line, using the keyword "private".
Other notable points about the package implementation:
In the base class, the inherited member is a: | |||
---|---|---|---|
Access From | Public Member | Protected Member | Private Member |
Members & friends of a derived class |
Yes | Yes | No |
Members & friends of a subsequently derived class |
if previous derivations are public or protected |
if previous derivations are public or protected |
No |
Other functions, using a derived object |
if derivation is public |
No | No |