1.

What kind of pattern is iterator pattern?(a) Design pattern(b) Sequence pattern(c) Adapter pattern(d) Star patternThis question was addressed to me during an online interview.I would like to ask this question from Iterators and Sequences in division Algorithms, Objects & Iterators in C++ of C++

Answer»

Right CHOICE is (a) Design pattern

Explanation: Iterator pattern is a design pattern in which an iterator is used to traverse a CONTAINER and access the container’s ELEMENTS.



Discussion

No Comment Found

Related InterviewSolutions