java设计模式之接口隔离原则(ISP)

接口隔离原则 Interface Segregation Principle

 

Clients should not be forced to depend upon interfaces that they don’t use

客户端不应该依赖它不需要的接口

 

The dependency of one class to another one should depend on the smallest possible interface

类间的依赖关系应该建立在最小的接口上

你可能感兴趣的:(java设计模式)