3 ms·
> inheritance based OOP What's "inheritance based OOP"? The kind of OOP that models everything using subclassing? Partly due to structural static typing so c
by mpweiher 9y ago
> inheritance based OOP
What's "inheritance based OOP"? The kind of OOP that models everything using subclassing? Partly due to structural static typing so compatibility/polymorphism can only be achieved by having a common ancestor class?
Sure, but that's missing the point of OOP almost completely.
Anyway, subclassing is an extremely useful and by now somewhat underrated tool: it allows for unanticipated extension and programming-by-difference. Meaning you already have something that's close to but not quite what you need.