Introduction to OOP
Chapter 19: Container Classes :
An iterator is an object that has two major responsibilities:
Provide access to the current element
Provide a way to move to the next element
Different languages use different interfaces, but the basic idea is the same.
, Slide 14