Cornerstone OnDemand Interview Question

How does dependency injection work?