What is Dependency Injection

Dependency Injection is a technique by which the collaborating objects are passed to the class that needs to work with them, and the class itself codes against an interface or base class, rather than a specific implementation class. There are several ways inject dependencies into a class, via one of these parts of the class: constructor, property, method.

Source: deviq.com

Leave a Reply

Your email address will not be published. Required fields are marked *