Update associations authored by Christian Zirkelbach's avatar Christian Zirkelbach
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# Associations # Associations
An Association classifies a set of tuples representing links between typed instances, e.g., two instances of classes at runtime. An Association classifies a set of tuples representing links between typed instances, e.g., two instances of classes at runtime.
## Example
![Binary Association Class Diagram](https://git.informatik.uni-kiel.de/ag-se/teaching-public/wikis/uml-sources/img/binary-association.png) ![Binary Association Class Diagram](https://git.informatik.uni-kiel.de/ag-se/teaching-public/wikis/uml-sources/img/binary-association.png)
# Aggregation vs Composition # Aggregation vs Composition
...@@ -13,5 +15,6 @@ In both aggregation and composition object of one class "owns" object of another ...@@ -13,5 +15,6 @@ 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. * 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: ![Composition Association Class Diagram](https://git.informatik.uni-kiel.de/ag-se/teaching-public/wikis/uml-sources/img/composition.png) ## Example
![Composition Association Class Diagram](https://git.informatik.uni-kiel.de/ag-se/teaching-public/wikis/uml-sources/img/composition.png)