
Liskov Substitution Principle Explained
The Liskov Substitution Principle is one of the five design principles that make for SOLID code, and probably one of the hardest to fully grasp. Before we dive into how we can apply it to our code, let’s take a look at the definition: In a computer program, if...