A design pattern where an object receives its dependencies from external sources rather than creating them internally. This promotes loose coupling and makes code more testable and maintainable.
The term combines 'dependency' from Latin 'dependere' meaning to hang from, with 'injection' from Latin 'injicere' meaning to throw in. The pattern was formalized in object-oriented programming during the 1990s as part of inversion of control principles.
Try Another Word