1 min readNov 20, 2018
Inheritance is a terrible way to reuse code because you need to make sure you follow the Liskov Substitution Principle, which most people neglect to do. Composition (embedding) is a much better way to reuse code.
Inheritance is a terrible way to reuse code because you need to make sure you follow the Liskov Substitution Principle, which most people neglect to do. Composition (embedding) is a much better way to reuse code.