← Back to Test

Problem 19 - Entrance Test

What is the purpose of using Dependency Injection?

Correct: A

Dependency Injection (DI) is a design pattern that aims to reduce coupling between classes by providing dependencies to a class from an external source, rather than having the class create its own dependencies. This promotes modularity, testability, and reusability. It does *not* increase coupling, create singletons, or enforce strict inheritance.