Monthly Archives: February 2013

Easy to remember: Composition vs Aggregation

As a rule of thumb: In composition (Person, Heart, Hand), aggregated objects (Heart, Hand) will be destroyed as soon as Person is destroyed. In aggregation (City, Tree, Car) aggregated objects (Tree, Car) will NOT be destroyed when City is destroyed. … Continue reading

Posted in Java | Tagged , | Leave a comment