January 2020
Intermediate to advanced
640 pages
16h 56m
English
The third principle from SOLID that we will be exploring is the Liskov substitution principle (LSP). It was introduced by Barbara Liskov in 1987 while delivering a keynote session at the Object-Oriented Programming Systems, Languages, and Applications (OOPSLA) conference [22]. The formal definition of LSP is as follows:
In layman's terms, two types are substitutable if their exhibited behavior follows exactly the same contract, thereby making it impossible for callers to distinguish between them. Thinking in pure OO ...