面向对象设计原则之里氏替换原则

里氏替换原则(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 is unchanged when o1 is s
相关文章
相关标签/搜索