Object-Oriented Design

We are certainly not going to be able to cover all of object-oriented design in a single chapter. It's not a subject you can master overnight. In addition to reading this book, we recommend that you study good object-oriented code—such as the Java standard library classes—and books—such as Design Patterns—cited at the end of the chapter.

To gain a complete understanding of object-oriented design, you need to be comfortable with some of the basics, such as the object relationships expressed as the phrases “is a” and “has a”. You will also need to be comfortable with the implications of class hierarchies, overloading, and overriding.

A Class Hierarchy

To facilitate this discussion, we outline the class hierarchy that you ...

Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) 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.