Wednesday, 8 July 2015

What is dependency inversion principle?

In object-oriented programming, the dependency inversion principle refers to a specific form of decoupling software modules.
This principle helps to create loosely coupled application.
 The principle states:
A. High-level modules should not depend on low-level modules. Both should depend on abstractions.

B. Abstractions should not depend on details. Details should depend on abstractions.

No comments:

Post a Comment