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 [2020-10-12 16:23] – old revision restored (2013-04-05 12:10) 159.69.186.191 | principles:liskov_substitution_principle [2021-09-02 18:26] – old revision restored (2021-09-02 10:48) 65.21.179.175 | ||
---|---|---|---|
Line 12: | Line 12: | ||
> " | > " | ||
- | |||
===== 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 '' | ||
- | |||
- | But the programming language does not enforce that the subtype also behaves like the supertype. Method '' | ||
- | |||
- | |||
Line 74: | Line 67: | ||
- | ===== Examples | + | ===== Example |
Line 90: | Line 83: | ||
* [[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