文件名称:依赖倒转原则
文件大小:15KB
文件格式:TXT
更新时间:2017-09-14 04:14:09
依赖倒转原则
依赖倒置原则(Dependence Inversion Principle,简称DIP)这个名字看着有点别扭,“依赖”还“倒置”,这到底是什么意思?依赖倒置原则的原始定义是:High level modules should not depend upon low level modules. Both should depend upon abstractions. Abstractions should not depend upon details. Details should depend upon abstractions。翻译过来,包含