adplus-dvertising
frame-decoration

Question

What is the difference between composition and aggregation in UML?

a.

Composition is the real-world part-of relation and aggregation is the representational part-of relation

b.

Composition is the representational part-of relation and aggregation is the real-world part-of relation

c.

Composition and aggregation have the same meaning

d.

Composition and aggregation are not related

Answer: (a).Composition is the real-world part-of relation and aggregation is the representational part-of relation Explanation:Sometimes, an explicit distinction is made between the real-world part-of relation and the representational part-of (or component-of) relation. In UML they are called composition and aggregation, respectively.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the difference between composition and aggregation in UML?