阅读背景:

六大设计原则--里氏替换原则【Liskov Substitution Principle】

来源:互联网 

声明:本篇文章内容是从网络书籍整顿而来,并不是原创。

定义

  • 最正宗的定义:

    If for each object o1 of type S there is an object o2 of type T such that for all programs P defined in terms of T, the behavior of P is unchanged when o1 is substituted for o2 then S is a subtype of T. I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: