4 ms·
Right that's still OOP.
by TZubiri 1y ago
Right that's still OOP.
- jay_kyburz 1y agoOh yeah, just saying inheritance is the part I don't like.
- 1718627440 1y agoInheritance and composition is fundamentally the same. This is easy to see when you implement it in a language that has no specific support for either (like C). Inheritance is basically composition of the data and the vtable and then overriding the default vtable entry with the supertype implementation.