<<< Inheritance     Index     Is-a relationship >>>

5. Superclasses and subclasses


  • The superclass, or parent class, or base class are common terms that refer to a class that contains common attributes and behaviors of a concept.

  • Naturally, any class that inherits from the superclass is considered a subclass, or child class, or derived class.

  • Deriving new classes from an existing class abstracts the base class.

  • Derived classes have the data and functions of the base class.

  • Inheritance tree can grow quite large:

      Mammal UML diagram

<<< Inheritance     Index     Is-a relationship >>>