Inversion of Control Pattern (IOC) is also known as ?
-
Inversion Injection
-
Dependency Injection
-
Setter Injection
-
Pattern Injection
B
Correct answer
Explanation
Inversion of Control (IoC) is a design principle where the flow of control is inverted compared to traditional programming. Dependency Injection is a common implementation pattern for achieving IoC - dependencies are provided to objects rather than objects creating them. Setter Injection and Constructor Injection are specific types of Dependency Injection.