Class Relationships
Figure C.2 shows a few of UML's features for modeling class relationships. Following are notes on class relationship notation.
Figure C.2. A MachineComposite object contains either Machine objects or other composites. The Customer class depends on the LikeMyStuff class without instantiating it.
Show a class name or a method name in italics to indicate that the class or method is abstract.
Use a closed, hollow arrowhead to point to a class's superclass.
Use a line between classes to indicate that instances of the classes are connected. Most commonly, a line on a class diagram means that one class has an instance variable that refers ...
Get Design Patterns Java™ Workbook 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.