Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
In Unified Modeling Language (UML), association, aggregation, and composition model “has-a” relationships. Visual notation matters: the diamond adornment differentiates these relationships. The statement claims aggregation uses a solid (filled) diamond and is a stronger association.
Given Data / Assumptions:
Concept / Approach:
Aggregation is a specialized association indicating a whole–part with weak ownership. Composition is the stronger form: the part’s lifecycle is bound to the whole (if the whole is destroyed, the parts go with it). Therefore, the solid diamond denotes composition, not aggregation. Aggregation uses a hollow diamond.
Step-by-Step Solution:
Verification / Alternative check:
Consult any standard UML reference: symbol tables consistently use hollow for aggregation, solid for composition.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing aggregation and composition; assuming tool-specific visuals change UML semantics; forgetting lifecycle coupling in composition.
Final Answer:
Incorrect
Discussion & Comments