2 ms·
It's the way OOP was used from what I saw 10-20 years ago. It was all inheritance, from uni course to patterns used etc. I've only fell into composition when I
by keyle 7y ago
It's the way OOP was used from what I saw 10-20 years ago. It was all inheritance, from uni course to patterns used etc.
I've only fell into composition when I got into video game development. We saw it a bit more with Silverlight but now it's such a clear movement (composition over inheritance) that it's in my resume's motto.
- raiph 7y agoIt's the way many OOP languages went, but it's not intrinsic to OOP. I recall encountering Emerald in the late 1980s. Here's its 1989 paper on composition over inheritance (code reuse wise): http://www.emeraldprogramminglanguage.org/Raj_ComputerJournal.pdf http://www.emeraldprogramminglanguage.org/Raj_ComputerJourna...