java设计模式之依赖倒置原则(DIP)

依赖倒置原则(Dependence Inversion Principle)

  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-06-05 11:19  誑逩の蝸犇  阅读(347)  评论(0编辑  收藏  举报