Which of the following is true about factory method?
(a) A factory method is a non-constructor operation that creates and returns class instances
(b) Factory methods are widely used in mid-level design patterns and in object-oriented programming in general
(c) Factory methods create new instances using constructors or cloning, so they do not rely on any special technique for class instantiation
(d) All of the mentioned
I had been asked this question during an internship interview.
Enquiry is from The Generator Category, Factory Patterns and Singleton Patterns topic in chapter Visibility, Accessibility and Information Hiding of Software Architecture