摘要: “开-闭”原则(Open-Closed Principle,或者OCP) 原文:Software entities should be open for extension,but closed for modification. 解释:一个软件实体应当对扩展开放,对修改关闭。里氏代换原则(Lisk... 阅读全文