Navigation
Recherche
|
[$] Inheritance versus composition
jeudi 9 mai 2019, 00:21 , par LWN.net
<p>
The idea of "inheritance" is something that most students learn about early on when they are studying object-oriented programming (OOP). But one of the seminal books about OOP recommends favoring "composition" over inheritance. Ariel Ortiz came to PyCon in Cleveland, Ohio to describe the composition pattern and to explain the tradeoffs between using it and inheritance.
https://lwn.net/Articles/787800/rss
|
56 sources (32 en français)
Date Actuelle
jeu. 28 mars - 10:12 CET
|