4 ms·
Well that's not really a critique of OO. A component is an object, no? Inheritance is often overused but its obviously important and useful. When it works it
by jayd16 7y ago
Well that's not really a critique of OO. A component is an object, no?
Inheritance is often overused but its obviously important and useful. When it works it works seamlessly. You don't have to think about all the inheritance in collection libraries, for example.
- username90 7y agoYou can write good collection libraries entirely without inheritance, just use interfaces instead.
- jayd16 7y agoBut you'd still want inheritance in your interfaces even if you didn't rely on base classes that much. IList is an ICollection and an IEnumerable in C# for example.