...
Info |
---|
The Liskov Substitution Principle (LSP) is a concept in object-oriented programming that states that if a program is using a base class, it should be able to use any of its subclasses without the program knowing it. In other words, subclasses should be substitutable for their base classes without affecting the correctness of the program. |
...
The principle is named after Barbara Liskov, who introduced it during her 1987 keynote address titled "Data Abstraction and Hierarchy". This principle is also part of the five principles of SOLID in object-oriented design and programming:
...