principles:liskov_substitution_principle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
principles:liskov_substitution_principle [2013-03-18 09:44] – external edit 127.0.0.1 | principles:liskov_substitution_principle [2013-06-17 22:58] – [Rationale] from thesis christian | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Context ===== | ===== Context ===== | ||
/* fill in contexts here: */ | /* fill in contexts here: */ | ||
- | * [[contexts: | + | * [[contexts: |
+ | * [[contexts: | ||
Line 12: | Line 13: | ||
> " | > " | ||
+ | |||
===== Description ===== | ===== Description ===== | ||
+ | Object-oriented programming languages allow to derive subtypes from base types and subtype polymorphism allows to pass an object of a subtype where ever an object of the supertype is specified. Suppose '' | ||
- | ===== Rationale ===== | + | But the programming language does not enforce that the subtype also behaves like the supertype. Method '' |
+ | |||
+ | |||
+ | ===== Rationale ===== | ||
+ | |||
+ | Let '' | ||
===== Strategies ===== | ===== Strategies ===== | ||
Line 34: | Line 42: | ||
===== Origin ===== | ===== Origin ===== | ||
- | Barbara Liskov: //[[http://portal.acm.org/ | + | Barbara Liskov: //[[http://citeseerx.ist.psu.edu/ |
===== Evidence ===== | ===== Evidence ===== | ||
/* Comment out what is not applicable and explain the rest: */ | /* Comment out what is not applicable and explain the rest: */ | ||
- | /* | + | |
- | * [[wiki: | + | /* * [[wiki: |
- | * [[wiki: | + | |
- | * [[wiki: | + | * [[wiki: |
- | * [[wiki: | + | * [[wiki: |
- | */ | + | |
+ | /* * [[wiki: | ||
===== Relations to Other Principles ===== | ===== Relations to Other Principles ===== | ||
Line 83: | Line 92: | ||
* [[wiki> | * [[wiki> | ||
* [[wp> | * [[wp> | ||
+ | * Barbara H. Liskov , Jeanette M. Wing: // | ||
+ | * Barbara H. Liskov , Jeanette M. Wing: // |
principles/liskov_substitution_principle.txt · Last modified: 2021-10-18 21:50 by christian