Structures for Java Classes
Inheritance among classes, use of the “extends” specification, was covered in CS303E. We will assume familiarity with use of the “extends” specification among classes and introduce interfaces and the “implements” specification.
One major motivation is “generic programming.” Generic programming is
that method written for one object type can be applied for another object type.