CSC300: Interfaces [5/6] | ![]() ![]() ![]() |
Some language features use special interfaces, such as Iterable
.
An Iterator
is a design pattern.
Iterator
allows you go through the elements of a data structure without imposing on the data sturcture itself.
Iterable
is an interface that gives you access to an Iterator
.