迷一样的逍遥人
晴带雨伞,包带干粮,点滴积累,水到渠成.
摘要: 3.1 依赖倒置原则的定义 依赖倒置原则(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。翻译过来,包含三层含义:高层模 阅读全文
posted @ 2012-02-15 17:20 谜一样的逍遥人 阅读(4620) 评论(3) 推荐(1) 编辑