← BYTES
Design Patterns·Starter·Ref: 17.1.8

What does the Iterator pattern provide?

Have a question about this video? Mention reference 17.1.8 when you contact us.

a.A way to permanently delete elements from a collection
b.A standard way to sequentially access elements of a collection without exposing that collection's internal underlying representation
c.A method for sorting a collection
d.A way to make a collection thread-safe
Iterator provides a uniform way (e.g., `hasNext()`/`next()`) to walk through a collection's elements one at a time, without the client needing to know or care whether the collection is internally an array, a linked list, or a tree.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1718#DesignPatterns