ABSTRACT

The first nine chapters of the book discussed how to structure the objects in a problem, and Chapter 10 addressed how to organize the relationships between objects for utility objects. The discussion in Chapter 10 suggested that composition should always be preferred over classification when designing and constructing utility objects; however, most objects used in a program are not utility objects but represent parts of the problem definition. When the objects are part of the problem definition, should composition or classification be used when constructing an object?