定义
接口隔离原则(Interface Segregation Principle, ISP),定义为: Clients should not be forced to depend upon interfaces that they don’t use. (客户端不应该依赖它不需要的接口。)The dependency of one class to anoth…
定义
依赖倒置?大家可能会觉得高深莫测。但是相信听我一翻解说之后,你就会恍然大悟,甚至你早已掌握到它的精髓了。我们先看一下依赖倒置原则的定义: High level modules should not depend upon low level modules. Both should …