The Liskov Substitution Principle Demystified
The Liskov Substitution Principle (LSP) is a fundamental concept in object-oriented programming (OOP) introduced byBarbara Liskov in 1987. You probably know it as the L in the five SOLIDprinciples. According to the LSP, objects of a superclass should seamlessly replace...