lundi 11 mai 2015

Composition over Inheritance Real life example

I am trying to understand the phrase "favor composite over inheritance".

Could someone give me a real life example why composition is better than inheritance.

Also if there are any drawbacks?

Aucun commentaire:

Enregistrer un commentaire