Define your own Collection class that support Iterator Pattern - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Saturday, March 31, 2012

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.

1 comment: