⬅️💘⬆️🎯↗️📲↙️
➡️📩↘️🏹⬇️
public ClassB extends ClassA implements InterfaceA, InterfaceB {
// ...
}
Note the closed arrowhead!
ClassB
ClassA
InterfaceA
InterfaceB
<<interface>>
<<interface>>
Text
Text
public ClassA {
private List<ClassB> myListOfB;
private ClassC myCObject;
...
}
public ClassC {
private ClassA myAObject;
...
}
?
?
?
ClassB
ClassA
ClassC
Implements and extends relationships are relationships between types
Associations are relationships between objects
What does this class diagram communicate about relationships between objects of type ClassA, ClassB and ClassC?
ClassB
ClassA
ClassC
1
1
3
Room 🚪
Building 🏢
"...there is hardly a difference between aggregations and associations during implementation, and the diagram may skip aggregation relations altogether."