June 2019
Beginner to intermediate
770 pages
19h 24m
English
The Liskov Substitution Principle (LSP) is named after computer scientist Barbara Liskov, inventor of the CLU language. This language emphasizes the concept of a cluster containing a description of the representation of an object and the implementations of all the operations on that object. For more information on this early object-oriented programming language, see http://www.pmg.lcs.mit.edu/CLU.html.
The LSP is often summarized as subtypes must be substitutable for their base types. This advice tends to direct us toward creating polymorphic type hierarchies. If, for example, we wish to add features to the Hand class, we should make sure any subclass of Hand can be used as a direct replacement for Hand ...
Read now
Unlock full access