摘要:
一. 接口隔离原则的定义 Clients should not be forced to depend upon interfaces that they don't use. 客户端只依赖于它所需要的接口;它需要什么接口就提供什么接口,把不需要的接口剔除掉。 The dependency of o 阅读全文
摘要:
设计模式六大原则之【单一职则原则】 一、什么是单一职责原则 首先, 我们来看单一职责的定义. 单一职责原则,全称Single Responsibility Principle, 简称SRP. A class should have only one reason to change 类发生更改的原因 阅读全文