Genetec interview question

If I understand Dependency Injection

Interview Answers

Anonymous

19 Oct 2018

Somewhat.

Anonymous

30 Jul 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.