The Interface Segregation Principle.
接口分离原则。
The Interface Segregation Principle: clients should not be forced to depend upon methods that they do not use. Interfaces belong to clients, not to hierarchies.
客户只要关注它们所需的接口,而不应该强迫客户依赖于它们不用的方法。
The Interface Segregation Principle: clients should not be forced to depend upon methods that they do not use. Interfaces belong to clients, not to hierarchies.
客户只要关注它们所需的接口,而不应该强迫客户依赖于它们不用的方法。
应用推荐