摘要: 里氏代换原则(Liskov Substitution Principle, LSP)1、里氏代换原则定义若对于每一个类型S的对象o1,都存在一个类型T的对象o2,使得在所有针对T编写的程序P中,用o1替换o2后,程序P的行为功能不变,则S是T的子类型。 What is wanted here is something like the following substitution property... 阅读全文
posted @ 2010-12-03 12:01 SouthIsland 阅读(564) 评论(0) 推荐(0) 编辑