3 ms·
Well, you just create an object and set it as a field / pass it via constructor to the object that uses it. There are dependency injections frameworks, but the
by mateuszf 7y ago
Well, you just create an object and set it as a field / pass it via constructor to the object that uses it. There are dependency injections frameworks, but the term dependency injection doesn't mean injecting automatically, it's more general. It just means that the dependency is provided from outside, and not how it's done.
https://en.wikipedia.org/wiki/Dependency_injection https://en.wikipedia.org/wiki/Dependency_injection