Info |
---|
A UML Class diagram is a type of diagram in the Unified Modeling Language (UML) that represents the structure and relationships of classes in a software system. It provides a static view of the system by illustrating the classes, their attributes, methods, and associations. |
In a UML Class diagram, classes are represented as rectangles divided into three compartments:
...
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
...