Inheritance





Example: A Box Class





Class Derivation: Syntax

class Cube : public Box { ... } ;



Public Derivation: Access





Public Derivation: Redefinition





Public Derivation: Type Conversion





Class Derivation: Constructors





Class Derivation: Destructors





Inheritance Hierarchy





Assignment Operator





Pointers to Derived Objects





Summary: Class Relations