Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
Understanding the visual difference between aggregation and composition in UML helps teams communicate whole–part relationships precisely. Misinterpreting the diamond glyph can reverse the intended semantics, leading to incorrect assumptions about object ownership and lifetime.
Given Data / Assumptions:
Concept / Approach:
In UML, an empty (hollow) diamond represents shared aggregation, a weak whole–part relationship (the part may exist independently). A filled (solid) diamond represents composition, a strong whole–part relationship that usually implies the part’s lifetime is bound to the whole. For example, a House composed of Rooms uses a filled diamond at the House end. Thus, the statement correctly identifies the solid diamond as composition.
Step-by-Step Solution:
Verification / Alternative check:
Review canonical UML examples: Document–Page (composition); Team–Player (shared aggregation) where players can exist outside a specific team. Modeling tools and reference cards consistently apply this convention.
Why Other Options Are Wrong:
Common Pitfalls:
Overusing aggregation where a plain association suffices; assuming composition enforces physical containment rather than conceptual ownership and lifetime binding.
Final Answer:
Correct
Discussion & Comments