Home » Tag Archives: SOLID

Tag Archives: SOLID

SOLID: Liskov Substitution Principle

This is the third in the series of posts on SOLID Software Principles. We previously covered the Single Responsibility Principle and the Open-Close Principle. In this post, I will take you through the L in SOLID, the Liskov Substitution Principle. The primary idea behind the Open-Closed principle is achieved using inheritance i.e. introduce new classes for new functionality and keep the classes related to existing functionality ...

Read More »

SOLID – Liskov Substitution Principle

Liskov Substitution principle (LSP) states that, Methods that use references to the base classes must be able to use the objects of the derived classes without knowing it This principle was written by Barbara Liskov in 1988. The idea here is that the subtypes must be replaceable for the super type references without affecting the program execution. This principle is ...

Read More »