PPT Slide
- Defines methods needed to enumerate (or iterate through) a set of values.
- Typically, use methods in a loop to see if there’s another element to return and, if so, to return a reference to it. Makes no promises about the order in which elements are encountered.
- Values may be iterated through only once; there is no way to reset to the beginning.
Example Interface: Enumeration