Encapsulation of Collection Structure:?
- The Iterator Pattern allows the collection’s internal structure to be hidden
from the client. The client interacts only with the iterator, which means that
changes to the underlying collection (e.g., changing it from a list to a linked
list) do not affect the client code.