...抽象类或接口)不应该依赖于细节(具体实现类) 细节(具体实现类)应该依赖抽象 接口隔离原则(Interface Segregation Principle, ISP) 一个类对另外一个类的依赖是建立在最小的接口上 使用多个专门的接口比使用单一的总接口要好.
基于853个网页-相关网页
和单元测试关系不大。 接口分离原则(Interface Segregation Principle):只有通过接口和具体实现类分离之后,才能在测试时为接口提供Mock或Stub。
基于102个网页-相关网页
里氏替换原则-Liskov Substitution Principle (LSP) 接口分隔原则-Interface Segregation Principle (ISP) 单一职责原则-Single Responsibility Principle (SRP) ..
基于6个网页-相关网页
接口隔离法则(Interface Segregation Principle,ISP),不应该迫客户端依赖于它们不用的方法. 这样做的话,不但没脱藕,还增加其藕合性。
基于4个网页-相关网页
the interface segregation principle 接口分离原则
Interface Segregation Principle ISP 接口隔离原则
ISP The Interface Segregation Principle 接口分离原则
I The Interface Segregation Principle 接口分离原则
Interface Segregation Principle - ISP 接口隔离原则
the Interface Segregation Principle ISP 接口分离原则
以上来源于: WordNet
应用推荐