摘要: 3.4 接口隔离原则 3.4.1 如何理解“接口隔离原则”? 英文翻译是“ Interface Segregation Principle”,缩写为 ISP。 Robert Martin 在 SOLID 原则中是这样定义它的:“Clients should not be forced to depe 阅读全文
posted @ 2020-04-07 20:32 杨海星 阅读(189) 评论(0) 推荐(0)
摘要: 3.3 里氏替换原则 3.3.1 如何理解“里式替换原则”? 英文翻译:Liskov Substitution Principle,简写为LSP 子类对象(object of subtype/derived class)能够替换程序(program)中父类对象(object of base/pare 阅读全文
posted @ 2020-04-07 20:31 杨海星 阅读(185) 评论(0) 推荐(0)