High level modules should not depend upon low level modules. Rather, both should depend upon abstractions.
高层模块不应该依赖底层模块,两者都应该依赖其抽象。
Abstractions should not depend upon details. Details should depend upon abstractions.
抽象不应当依赖于细节,细节应当依赖于抽象。
Abstractions should not depend upon details, details should depend upon abstractions. Program to an interface, not an implementation.
抽象不应该依赖于细节,细节应该依赖于抽象,要针对接口编程,不要针对实现编程。
Details should depend upon abstractions.
细节应该依赖于抽象。
Depend upon Abstractions. Do not depend upon concretions.
依赖抽象,不要依赖具体。
Depend upon Abstractions. Do not depend upon concretions.
依赖抽象,不要依赖具体。
应用推荐