Hour 12. Making the Most of Existing Objects
THIS HOUR’S TO-DO LIST:
Design superclasses and subclasses.
Form an inheritance hierarchy.
Override methods.
Java objects are ideally suited for childbearing. When you create an object—a set of attributes and behavior—you have designed something that’s ready to pass these qualities on to offspring. These child objects take on a lot of the same attributes and behavior of the parent. They also can do some ...
Get Java™ in 24 Hours, Sams Teach Yourself (Covering Java 8), Seventh Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.