里氏替换原则

里氏替换原则 里氏替换原则(Liskov Substitution Principle,LSP) ● 第一种定义,也是最正宗的定义: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 i
相关文章
相关标签/搜索