The Iterator Pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
A class should have only one reason to change
The Iterator Pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
A class should have only one reason to change