Reusing Classes via Inheritance and Composition
摘要
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.