+1 vote
in Software Architecture by (75.2k points)
Which of the following is considered when broker is compared to iterator pattern?

(a) An iterator provides access to the elements of a collection on behalf of a client

(b) An iterator do not provides access to the elements of a collection on behalf of a client

(c) Broker is not an iterator pattern

(d) None of the mentioned

This question was posed to me in an online interview.

This interesting question is from Mid-Level Design Pattern Categories and Broker Pattern topic in chapter Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
Correct answer is (a) An iterator provides access to the elements of a collection on behalf of a client

For explanation I would say: An iterator provides access to the elements of a collection 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
...