A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. 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?
a. encapsulating the knowledge of which document subclass to is to be created
b. moving this knowledge out of the framework
c. instantiating the application specific documents without knowing their class
d. all of the mentioned
Answer:all of the mentioned
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here