• Class hierarchy.
    • All primitives extend from either the Primitive or GPrimitive class which extends from Command.
    • The use of inheritance in Java allows the code common to all primitives to be written once in the Primitive or Command class. All primitives automatically inherit this code and do not need to include it themselves.
    Click image for larger view.