1568Software EngineeringMedium
In factory method pattern, the framework must instantiate classes but it only knows about the abstract classes, which it cannot initiate. How would one solve this problem?
Aall of the mentioned
Binstantiating the application specific documents without knowing their class
Cmoving this knowledge out of the framework
Dencapsulating the knowledge of which document subclass to is to be created and
Correct answer
A. all of the mentioned
Explanation
Explanation: Following all the options in order will solve the factory method problem.