Question d’entretien chez Source Intelligence

Which would you prefer: composition or inheritance?

Réponse à la question d'entretien

Utilisateur anonyme

4 févr. 2016

I prefer composition over inheritance - one of the design principles of OOP. I also find it easier to re-use code and it's easier for the developer to digest.