In computer science, an iterator is an object which allows a programmer to traverse through all the elements of a collection, regardless of its specific implementation. An iterator is sometimes called a cursor, especially within the context of a database.
Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
Use Iterator pattern
Comments are closed.
Splendid article . Will definitely copy it to my blog,surely with link pointing towards you..Thanks.