3.1 Inheritance
Several technical aspects make inheritance unique in our context:
- Each member of the superclass is inherited exactly once.
- Can access protected and public members of the superclass.
- Members of the superclass can be masked by those of the subclass.
- The reference or address of a subclass object can be up casted to that of a superclass if it is a public inheritance.
- The reference or address of a superclass can be dynamically down casted to that of a subclass if it is a public
inheritance, and the superclass is polymorphic.