Cornerstone OnDemand interview question

How does dependency injection work?