volume_mute
Aggregation — Definition and Notation
publish date: 2026/06/08 08:10:24.651727 UTC
volume_mute
The diagram below shows an aggregation association in a UML class diagram.
In UML, the diamond shape on an aggregation association is placed next to which class, and what does aggregation mean?
Correct Answer
Diamond next to the whole class; aggregation means that one object (the whole) is composed of other objects (the parts)
Explanation
In UML aggregation, the diamond shape is added next to the class that represents the whole. Aggregation means that one object (the whole) is composed of other objects (the parts). For example, Patient Record (the whole) is an aggregate of Patient and Consultation (the parts). The diamond is placed at the Patient Record end of each line to show it is the whole.
Reference
Software Engineering, Ian Sommerville, 9th edition
