Introduction to OOP
Chapter 19: Container Classes :
next
previous
audio
real
text
Iterator
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.
Intro OOP,
Chapter 19
, Slide 14