Computer Science, asked by anuj, 1 year ago

What is difference between aggregation and composition?

Answers

Answered by AnushreeSaxena1
1
Aggregation implies a relationship where the child can exist independently of the parent. Example: Class (parent) and Student (child). Delete the Class and the Students still exist.

Composition implies a relationship where the child cannot exist independent of the parent. Example: House (parent) and Room (child). Rooms don't exist separate to a House.

Make me as brainliest
Similar questions