Genetec Interview Question

If I understand Dependency Injection

Interview Answers

Anonymous

Oct 19, 2018

Somewhat.

Anonymous

Jul 30, 2020

Major method to make the connection between classes more looser. I take Interface injection as an example. An instance of class B has to be used in class A. Instead of creating the instance of class B directly, we can instantiate an instance of interface inherited by class B.