Composition vs Aggregation

Kitchen in House is Composition and Engine in Car is Aggregation Composition: If internal attributes can not exist without Outer Class, that goes to Composition. You can not take Bedroom, Kitchen or Balcony out of any Flat or House. i.e Now imagine, Can we access Kitchen if we set No. It means, the attributes of House (i.e. Kitchen) Class can not exist without its House … Continue reading Composition vs Aggregation