
Dependency
Injection is the design pattern that help us to create application
which loosely coupled. This means that object should only have those
dependency that required during complete task. The main advantages of DI
(Dependency Injection) is our application loosely coupled and has
provide greater maintainability, testability and also re-usability. It
is loosely coupled because dependency required by the class are injected
.