Dependency Inversion Principle explained with simple example
Dependency Inversion Principle (DIP) is a software design principle which states that “High-level modules should not depend on low-level modules. Both should depend on abstractions And Abstractions should not depend on details. Details should depend on abstractions“. This design principle ensures a lower coupling between different classes.
Before going ahead we should know why do we need software design principle and what is software design principle.
(more…)