+1 vote
in Software Architecture by (75.2k points)
Which of the following is not correct regarding Multiple simultaneous iterations?

(a) Each iterator can be responsible for managing one traversal of its associated collection independently of all other iterators

(b) Clients can then use several iterators at once to traversal the iterations in various ways simultaneously

(c) The iteration control interface is in iterator and not the collection

(d) None of the mentioned

I got this question by my college professor while I was bunking the class.

My enquiry is from Collection Iterator Pattern in division Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
The correct option is (c) The iteration control interface is in iterator and not the collection

Easiest explanation: Collection interface simplicity include iteration collection interface in iterator and not in collection.

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
...