Which of the following truly describes the structure of Generator pattern?
(a) A generator pattern has a Client that needs an instance of a Product class
(b) A Generator that creates or obtains access to such an instance on behalf of the Client
(c) All of the mentioned
(d) None of the mentioned
This question was posed to me in a job interview.
Question is from The Generator Category, Factory Patterns and Singleton Patterns in division Visibility, Accessibility and Information Hiding of Software Architecture