The structure of a class diagram
Class diagrams consist of several types of structures, and a set of connecting lines that express the relationship between the structures. The structures are as follows:
- A class (obviously)
- An interface
- An enumeration
- Packages (expanded and collapsed)
Connecting lines between the structures show how those structures are related. The relationships we can express include the following:
- Inheritance
- Interface realization
- Composition
- Association
- Dependency
- Aggregation
- Directed association
The last possible element on a UML diagram are the notes. Notes are just what you think they are. Sometimes, an architect needs to add a little more information than what the standard UML allows. Notes let you do that. You shouldn’t use them to write an epistle. Short notes in implementation logic are what you see most commonly.
To understand the patterns in this book, you need to understand class...