ABSTRACT

Building on the previous chapter, we examine how class designs may be used together. We cover the basic relationships modeled in Object-Oriented Design (OOD): has-a, holds-a, and is-a. ese relationships are also known as composition, containment, and inheritance, respectively. Each type of relationship is examined in detail, with examples and descriptions of intended use. e relevance, costs, and benets of each design are evaluated. A comparative evaluation of these relationships reinforces the underlying impetus for each design.