+1 vote
in Software Architecture by (75.2k points)
Which of the following is correct about Collection interface simplicity?

(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

The question was asked in class test.

The doubt is from Collection Iterator Pattern topic in section Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

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

For explanation I would say: Collection interface simplicity include iteration collection interface in iterator and not in collection rest others belongs to multiple simultaneous iterations.

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