16.5. Note Symbols: Notes, Comments, Constraints, and Method Bodies
Note symbols can be used on any UML diagram, but are especially common on class diagrams. A UML note symbol is displayed as a dog-eared rectangle with a dashed line to the annotated element; they've already been used throughout the book (for example, Figure 16.6). A note symbol may represent several things, such as:
- a UML note or comment , which by definition have no semantic impactconstraint, in which case it must be encased in braces '{…}' (see Figure 16.14)method bodythe implementation of a UML operation (see Figure 16.7)
Figure 16.7. How to show a method body in a class diagram.
[View full size image]