It’s the last SOLID principle: the Dependency Inversion Principle:
- High-level modules should not depend on low-level modules. Both should depend on abstractions.
- Abstractions should not depend on details. Details should depend on abstractions.
The general idea of this principle is simple; If high-level modules depend on low-level modules, we should…