A. encapsulating the knowledge of which document subclass to is to be created and
B. moving this knowledge out of the framework
C. instantiating the application specific documents without knowing their class
D. all of the mentioned
✅ The correct answer is option D.
Explanation: Following all the options in order will solve the factory method problem.
Explanation: Following all the options in order will solve the factory method problem.