系列文章 设计原则:单一职责(SRP) 设计原则:开闭原则(OCP) 设计原则:里式替换原则(LSP) 设计原则:接口隔离原则(ISP) 设计原则:依赖倒置原则(DIP) 何谓高质量代码? 理解RESTful API 1 定义 里氏原则的英文是Open Closed Principle,缩写就是OCP.其定义有两种 定义1: If S is a subtype of T, then objects of type T may be replaced with objects of type S,