What could be the solution of above problem?

When your class will be instantiated all the dependencies injected in your class constructor will also get instantiated, and it will trigger a chain reaction of object creation, this can really slow down the process.

What could be the solution of above problem?
A . Use Proxy classes with help of di.xml
B. Use VitualType classes with help of di.xml
C. Use Dependecy Injection with help of di.xml
D. Use factory classes instead of Model.

Answer: A

Latest AD0-E704 Practice Questions with 89 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments