Dependency Inversion Principle
Dependency Inpervion Principle is one of the SOLID design principle. It states following two thing:
- High-level modules should not depend on low-level modules. Both should depend on the abstraction.
- Abstractions should not depend on details. Details should depend on abstractions.