Why we are so confused on c++ virtual function, iterator, and a functor
Why we are so confused on c++ virtual function, iterator, and a functor
Why we are so confused on c++ virtual function, iterator, and a functor
Iterator 3.Question: What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator. Answer: .An internal iterator is implemented with member functions of the class that has items to step through. .An external iterator is implemented as a separate class that can be “attach” to the object …