Basic Subclassing

A class is transformed into a subclass by adding a "generalization" relationship from the subclass to the superclass (base class). On a class diagram this appears as a line between the two classes with an arrow pointing toward the superclass.

This means that the subclass inherits all the operations of the superclass, and in addition it may:

Consider two classes where MySubclass is a subclass of MyBaseClass: