UML DIAGRAM KLAS
UML DIAGRAM KLAS
WYKŁAD
http://edu.pjwstk.edu.pl/wyklady/pri/scb/index01.html
Differences between composition and aggregation[edit]
Composition relationship : When attempting to represent real-world whole-part relationships, e.g., an engine is a part of a car.
Aggregation relationship : When representing a software or database relationship, e.g., car model engine ENG01 is part of a car model CM01, as the engine, ENG01, may be also part of a different car model.[6]
Thus the aggregation relationship is often "catalog" containment to distinguish it from composition's "physical" containment.