PromptHub
General 34 views

Dependency Injection

Quick Definition

Pattern receiving dependencies from external sources

Full Definition

A design pattern where an object receives its dependencies from external sources rather than creating them.

Examples

IoC containers, constructor injection, testability, loose coupling

Related Terms

inversion-of-control design-patterns solid

More General Terms