0

I think the difference between Composition and Aggregation is as follows.

Composition: When the parent object is killed, the child object cannot be used by another object.
Ex: Employee and BankAccount. OR Employee and IdCard.

Aggregation: When the parent object is killed, the child object can be used by another object.
Ex: Employee and Phone.

Do you think it's true? Is the drawing below correct?
diagram

Bunyamin
  • 1
  • 2

0 Answers0