A virtual type refers to the way of configuring dependency injection via a di.xml file. It allows changing or configuring specific classes. The trick is that a virtual type can never be referenced directly in the source code. Your candidate should specify this exception and possibly provide use cases of a virtual type.
Answers (0)