...
Relationship Type | Graphical Representation |
---|---|
Inheritance (or Generalization):
| |
Simple Association:
| |
Aggregation: A special type of association. It represents a "part of" relationship.
| |
Composition: A special type of aggregation where parts are destroyed when the whole is destroyed.
| |
Dependency:
|
...
Names of relationships are written in the middle of the association line.Good relation names make sense when you read them out loud:"Every spreadsheet contains some number of cells","an expression evaluates to a value"They often have a small arrowhead to show the direction in which direction to read the relationship, e.g., expressions evaluate to values, but values do not evaluate to expressions.
Relationship - Roles
A role is a directional purpose of an association.
Roles are written at the ends of an association line and describe the purpose played by that class in the relationship.
E.g., A cell is related to an expression. The nature of the relationship is that the expression is the formula of the cell.
...
Navigability
The arrows indicate whether, given one instance participating in a relationship, it is possible to determine the instances of the other class that are related to it.
...