Machine-translated by Google. Questions are authored in English.
Top

Discussion

Composition is a stronger form of which of the following?

  • A.Aggregation
  • B.Encapsulation
  • C.Inheritance
  • D.All of the above.

Answer: A

Correct answer: Aggregation

Composition is aggregation with ownership and coincident lifetime: the part belongs to exactly one whole and is destroyed with it. Aggregation is the looser part-of relationship in which the part may exist independently and may be shared. The notation reflects the strength - a hollow diamond for aggregation, a solid one for composition.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.