3 ms·
I think you need to distinguish between interface inheritance and implementation inheritance. The reason to use interface inheritance is to allow polymorphism
by ipreuss 16y ago
I think you need to distinguish between interface inheritance and implementation inheritance.
The reason to use interface inheritance is to allow polymorphism in a statically typed language.
The only reason to use implementation inheritance is code reuse. And yes, you should only do that if the classes conform to the LSP.