Define your own Collection class that support Iterator Pattern
Today we will demonstrate how these interfaces works. For that we 'll develop our own classes that implement these interfaces.
Objective
Define Enumerable and Enumerator object for User Define data type (i.e. Class)
Using the code
First of all let's define a class for which we are going to developed Iteratorclasses. Here is a class for same.
0 Comments