Source: wikibot/liskov-substitution-principle

= Liskov substitution principle
{wiki=Liskov_substitution_principle}

The Liskov Substitution Principle (LSP) is one of the five SOLID principles of object-oriented programming and design, formulated by Barbara Liskov in 1987. It states that if S is a subtype of T, then objects of type T should be replaceable with objects of type S without altering any of the desirable properties of that program (correctness, task, etc.).