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-06-22 20:42] – christian | principles:liskov_substitution_principle [2021-09-02 10:49] – old revision restored (2021-05-11 22:04) 65.21.179.175 | ||
---|---|---|---|
Line 30: | Line 30: | ||
* Only strengthen invariants in subclasses; never weaken them | * Only strengthen invariants in subclasses; never weaken them | ||
- | * Only waken preconditions when overriding methods | + | * Only weaken |
* Only strengthen postconditions when overriding methods | * Only strengthen postconditions when overriding methods | ||
* Use Delegation instead of Inheritance | * Use Delegation instead of Inheritance |
principles/liskov_substitution_principle.txt · Last modified: 2021-10-18 21:50 by christian