Example: List Iterator (2)
l
By making the
ListIterator
an
inner class, we can:
l
Use data elements defined in the
ClosedList
.
l
Avoid exposing those data elements to
the world at large.
l
Use Iterators outside
ClosedList
.