InterviewSolution
Saved Bookmarks
| 1. |
Explain dependency injection. |
|
Answer» The Dependency INJECTION (DI) pattern is a design pattern for implementing the INVERSION of Control (IOC). DEPENDENT objects can be created outside of classes and made available to classes in different ways. Three types of classes are involved in Dependency Injection as follows:
|
|