Liskov Substitution Principle
El tercer principio que compone SOLID es el Liskov Substitution Principle, y este nos plantea Plantea una guía de cuando debemos usar herencia en POO. Let Φ (x) be a property provable about objects x of type T. Then Φ (y) should be true for objects y of type S where S is a subtype of T. Este principio, podemos entenderlo en su modo más simple de la siguiente forma "Las clases derivadas, deben poder ser sustituidas por sus clases base". Para ejemplificar…