UML cheat sheet
December 1, 2015
Relationships is one of the easier things to forget about UML.
Represents the static relationship shared among the objects of two classes.
It’s a strong has relationship. The black arrow points to the owning side.
Is a has relationship. Aggregation uses the diamond on the container with the other side on the contained.
A realization relationship is the client implements or executes the behaviour of the supplier.
Is a weak bound, usually when an entity uses other as a function argument or a local variable.
The generalization is an inheritance relationship. The arrow points to the base class.
Default values are expressed in a natural way I bet most of the developers would be intuitive about:
- foo : int = 0
Constants are expressed through a “convention”, all CAPITAL letters should be used.
- MY_CONSTANT : int = 1