Liskov_substitution_principle Liskov_substitution_principle

Liskov substitution principle - Definition

Related Words: Alienation, Alternative, Analogy, Atonement, Autism, Backup, Balancing, Change, Changeling, Commutation, Comparison, Compensation, Copy, Counterfeit, Decompensation, Deputy

The Liskov substitution principle is one possible definition of subtype, a relation between datatypes. The name is commonly used in the field of object-oriented computer programming for the definition of subtype introduced by Barbara Liskov and Jeannette Wing in a 1993 paper titled Family Values: A Behavioral Notion of Subtyping. It was formulated in a subsequent paper (http://reports-archive.adm.cs.cmu.edu/anon/1999/CMU-CS-99-156.ps) as follows:

Let q(x) be a property provable about objects x of type T. Then q(y) should be true for objects y of type S where S is a subtype of T.

Thus, the notion of "subtype" is based on the notion of substitutability; that is, if S is a subtype of T, then objects of type T in a program may be replaced with objects of type S without altering any of the desirable properties of that program (e.g., correctness).

External links

Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.