December 2003
Beginner
288 pages
7h 8m
English
Let's work on a simple example that will tie the concepts of inheritance, interfaces, composition, associations, and aggregations together into a single, short system diagram.
Consider the example used in Chapter 8, with one addition: We will add an Owner class that will take the dog out for walks.
Recall that the Dog class inherits directly from the Mammal class. The solid arrow represents this relationship between the Dog class and the Mammal class in Figure 9.9. The Nameable class is an interface that Dog implements, which is represented by the dashed arrow from the Dog class to the Nameable interface.
In this chapter, we are mostly concerned with associations ...
Read now
Unlock full access