Multiple choice

Which of the following is a correct statement about 'Iterator' design pattern?

  1. It is used to specify the objects with their underlying representation.

  2. It encapsulates a request as an object.

  3. It avoids coupling the sender of a request to its receiver.

  4. It defines the creation of a class for which only a single instance can exist.

  5. It virtualises storage of entities in a persistent medium.

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

This pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.