SOLID principles – Part 3: Liskov’s Substitution Principle
This is the third of a five part series, where I go over the 5 principles which make up the SOLID principles by Robert C. Martin.
The third one is L: Liskov’s Substitution Principle (LSP)
This principle states that if S is a subtype of T, then objects of type T may be replaced with objects of type S without altering the desirable properties of the program (includes correctness, task performed, etc.)