+ 3

What is iterable and iterator?

3rd Aug 2017, 7:42 PM
Mayur bode
3 Antworten
+ 3
Hi,iterable is an interface which contains signatures of methods for going through the collection of objects.These objects which must be iterable must implement the interface iterable.Iterator is a specific object which contains a status and internal information about iterable object.Collection of data(objects) is managed by this iterator.
3rd Aug 2017, 8:05 PM
Highman
Highman - avatar
+ 1
Thanks,now got it.
3rd Aug 2017, 8:19 PM
Mayur bode