Dependency Injection means inversion of responsibilities with regard to how an object obtains references to collaborating objects.
When applying DI , objects are given their dependencies at creation time by some external entity that coordinates with each object in the system.
Benefits : Loose coupling.
When applying DI , objects are given their dependencies at creation time by some external entity that coordinates with each object in the system.
Benefits : Loose coupling.
