Question: what is the difference between aggregation and composition?
Answer: Aggregation implies a relationship where the child can exist independently of the parent. Example: Class (parent) and Student (child). ... Composition implies a relationship where the child cannot exist independent of the parent. Example: House (parent) and Room (child).