Information générale
Catégorie:
Programmation Orientée Object
"Both forms of derivation" ?
I wouldn't say that inheritance (read subclassing) is better or worse than the composition, or that one needs more planning than the other. I believe that both must be planned and used for their advantages... where they offer their advantages. :)
Vlad
>... and if I dared I'd add that both forms of derivation (read making available of functionality) have their advantages and disadvantages. Inheritance requires much more planning than composition, but the leverage you can obtain is at times ... tremendous.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement