User Tools

Site Tools


principles:liskov_substitution_principle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
principles:liskov_substitution_principle [2013-06-19 12:34] – [Description Status] christianprinciples:liskov_substitution_principle [2016-03-07 22:17] – [Strategies] fix typo (waken -> weaken) 66.228.70.98
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 preconditions when overriding methods
   * Only strengthen postconditions when overriding methods   * Only strengthen postconditions when overriding methods
   * Use Delegation instead of Inheritance   * Use Delegation instead of Inheritance
Line 94: Line 94:
   * Barbara H. Liskov , Jeanette M. Wing: //[[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.39.1223|A Behavioral Notion of Subtyping]]//   * Barbara H. Liskov , Jeanette M. Wing: //[[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.39.1223|A Behavioral Notion of Subtyping]]//
   * Barbara H. Liskov , Jeanette M. Wing: //[[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.28.2615|Behavioral Subtyping Using Invariants and Constraints]]//   * Barbara H. Liskov , Jeanette M. Wing: //[[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.28.2615|Behavioral Subtyping Using Invariants and Constraints]]//
 +
 +===== Discussion =====
 +
 +Discuss this wiki article and the principle on the corresponding [[talk:principles:Liskov Substitution Principle|talk page]].
principles/liskov_substitution_principle.txt · Last modified: 2021-10-18 21:50 by christian