Liskov’s Substitution Principle (LSP)
This principle is a variation of the open-closed principle. It says: “Derived or subtypes must be completely substitutable for their base types” That means that the classes may be created by extending our class should be able to fit in the application without any failure. This requires the objects of your subclasses to behave in… Read More »