Liskov Substitution Principle
  • Keynote address - data abstraction and hierarchy by Barbara Liskov in 1988
    • What is wanted here is something like the following substitution property: If for each object o1 of type S there is an object o2 of type T such that for all programs P defined in terms of T, the behavior of P is unchanged when o1 is substituted for o2 then S is a subtype of T.
    • Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it.
    • The Liskov Substitution Principle by Uncle Bob
    • It adds a rule to inheritance and interface. The rule is helpful to let Open-Closed Principle not violated.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License