... | ... | @@ -2,8 +2,7 @@ |
|
|
|
|
|
# Associations
|
|
|
An Association classifies a set of tuples representing links between typed instances, e.g., two instances of classes at runtime.
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
# Aggregation vs Composition
|
|
|
|
... | ... | @@ -14,3 +13,5 @@ In both aggregation and composition object of one class "owns" object of another |
|
|
|
|
|
* Composition implies a relationship where the child cannot exist independent of the parent. Example: House (parent) and Room (child). Rooms don't exist separate to a House.
|
|
|
|
|
|
Example: 
|
|
|
|