Relationships in UML
Relationships in UML
• Dependency (Uses)
• Association (define relation)
• Generalization (inheritance, ‘is a’)
Dependency
Is a unidirectional usage of relationships
between elements. It is a using relationship.
Therefore change in specification of one class
affect another class that uses it, but not
necessary the reverse. Graphically, a
dependency is rendered as a dashed directed
line, directed to the thing being depend on.
Class A Class B
Class A dependent on Class B
Treatment Lab result
Aggregation
Department Part
Classroom
Composition Of A Car
School Department
Student
Generalization
Account