HOUR 12Making the Most of Existing Objects

This Hour’s To-Do List:

Image Design superclasses and subclasses.

Image Form an inheritance hierarchy.

Image 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 Sams Teach Yourself Java in 24 Hours, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.