+1 vote
in Software Architecture by (75.2k points)
Which of the following is true with respect to generator pattern?

(a) They have a broker that mediates interactions between a client and a supplier

(b) They have a generator that creates instances of a product on behalf of a client

(c) They have a reactor that registers with a target to respond to target events on behalf of a client

(d) None of the mentioned

The question was posed to me in a job interview.

My question comes from Mid-Level Design Pattern Categories and Broker Pattern in division Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
The correct answer is (b) They have a generator that creates instances of a product on behalf of a client

Explanation: Generator pattern have a generator that creates instances of a product on behalf of a client.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...