The figure shows a type hierarchy, to illustrate use of the terms supertype and subtype.

The hierarchy is shown as four boxes labelled A, B, C, and D.