3 ms·
You can get Encapsulation, abstraction, and polymorphism any number of other ways. Inheritance is the only defining property of OOP. If you removed all the stu
by hajile 1y ago
You can get Encapsulation, abstraction, and polymorphism any number of other ways. Inheritance is the only defining property of OOP.
If you removed all the stuff related to inheritance and trying to fix the leaky abstraction that is objects, the language would be a fraction of the size (compare with Go or StandardML for how small a language without inheritance can be).
- zelphirkalt 1y agoAnd as for inheritance: Composition over inheritance. So .... just don't do OOP, I guess?