What is iterable and iterator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is iterable and iterator?

3rd Aug 2017, 7:42 PM
Mayur bode
3 Answers
+ 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