Chapter 6 introduced you to classes, which encapsulate (combine) fields (that store state), methods (that implement behaviors), and constructors (that instantiate objects). This arrangement is known as object-based programming.
Java provides an inheritance mechanism for deriving a class from another class. The idea is to reuse this other class in a more specialized manner. This arrangement is known as object-oriented programming.
Java also provides a composition mechanism for defining a class as ...