Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Page 1 of 1
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
An external iterator is implemented as a separate class that can be "attach" to the object that has items to step through while an internal iterator is implemented with member functions of the class that has items to step through. With an external iterator many different iterators can be active simultaneously on the same object - this is its basic advantage.
Similar topics
» Difference between an external iterator and an internal iterator
» Define an Iterator class.
» Differentiate between class and structure.
» How would you differentiate between a pre and post increment operators while overloading?
» Differentiate between late binding and early binding. What are the advantages of early binding?
» Define an Iterator class.
» Differentiate between class and structure.
» How would you differentiate between a pre and post increment operators while overloading?
» Differentiate between late binding and early binding. What are the advantages of early binding?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum