dcsimg
difference between iterator and enumerator
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sarath_babu
Posted On:   Tuesday, November 15, 2005 01:50 AM

what is the difference between iterator and enumerator??

Re: difference between iterator and enumerator

Posted By:   Anonymous  
Posted On:   Monday, November 21, 2005 02:58 AM

Both provide an encapsulated looping logic over the collection. Enumeration gives a static view of looping, you can only "read" the contents of the collection. Iterator has an additonal method remove() that allows removal of the item from collection.

Re: difference between iterator and enumerator

Posted By:   Almagest_FUTT  
Posted On:   Tuesday, November 15, 2005 02:29 PM

If you mean Iterator and Enumeration:
they're different classes (interfaces).
About | Sitemap | Contact