定义 接口隔离原则(Interface Segregation Principle,ISP)要求程序员尽量将臃肿庞大的接口拆分成更小和更具体的接口,让接口中只包含客户感兴趣的方法。定义:客户端不应该被迫依赖于它不适用的方法(Clients should not be forced to depend on methods they do not use)。该原则还有另外一个定义:一个类对另一……

Continue reading