摘要:
原文:http://blog.csdn.net/eric_jo/article/details/6799067依赖倒置原则的2个重要方针A. High level modules should not depend upon low level modules. Both shoulddepend upon abstractions.高层模块不应该依赖于低层模块,二者都应该依赖于抽象B. Abstractions should not depend upon details. Details should depend uponabstractions.抽象不应该依赖于细节,细节应该依赖于抽象 阅读全文