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:
Identify relationship type: association (plain), aggregation (shared), composition (strong).Match to UML notation: aggregation → hollow diamond; composition → solid diamond.Compare strength: composition is stronger than aggregation.Thus the statement claiming “aggregation” is shown with a solid diamond is incorrect.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