原则:1、高层模块不应该依赖底层模块。两个都应该依赖于抽象 针对接口编程,不要对实现编程。 2、抽象不应该依赖细节,细节应该依赖抽象 转载于:https://www.cnblogs.com/lbliubinlb/p/4786582.html