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

Discussion

Composition does not allow an object to be part of more than one aggregate object.

  • A.True
  • B.False

Answer: A

Correct answer: True

This is what distinguishes composition from ordinary aggregation. The part belongs to exactly one whole, and its lifetime is bound to that whole, so it can be neither shared between two aggregates nor left behind when the aggregate is destroyed. Aggregation permits both.

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

Post your comment

Please log in or register to post a comment.