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