Capgemini interview question

Explain Inversion of Control, how to implement it.

Interview Answer

Anonymous

21 Aug 2017

Inversion of Control or Dependency Injection is a pattern which eliminates dependencies from a class. Dependencies are injected into the dependant class instead of instantiation inside the class which makes it loosely coupled with dependencies and the client that use this class has the control on which implementation of dependencies to be injected.

8