Multiple choice technology architecture

Iterators are useful when dealing with which of the following types of classes?

  1. Dynamic

  2. Collection

  3. Singleton

  4. Small

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Iterators provide a way to access elements of a collection sequentially without exposing its underlying representation. They are specifically designed for collection classes where you need to traverse elements uniformly regardless of the collection's internal structure.