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 and
(b) moving this knowledge out of the framework
(c) instantiating the application specific documents without knowing their class
(d) all of the mentioned
I got this question in an interview for internship.
Query is from Software Design Pattern topic in section Design and Implementation of Software Engineering