Problem Statement
In a UML Class diagram, which relationship indicates a strong whole–part lifecycle ownership?
Explanation
Composition means the part cannot live without the whole. Destroying the whole destroys its parts.
Aggregation is a weaker “has-a” relationship where parts can exist independently.
Code Solution
SolutionRead Only
Order ◼─ contains ─► OrderItem
