定律与定理 › 原理

Liskov代换原则

Liskov substitution principle

object-oriented programming principle stating that, in a computer program, if S is a subtype of T, then objects of type T may be replaced with objects of type S without altering any of the desirable properties of the program (correctness, etc.)

在面向对象的程序设计中,里氏替换原则 是对子类型的特别定义。它由芭芭拉·利斯科夫 在1987年在一次会议上名为“数据的抽象与层次”的演说中首先提出。

摘自维基百科「里氏替换原则」,CC BY-SA 4.0

发现者 / 提出者
芭芭拉·利斯科夫
命名来源
芭芭拉·利斯科夫
属于
SOLID
研究学科
子类型
学科
计算机科学

相关科学家