Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 407 Bytes

File metadata and controls

17 lines (9 loc) · 407 Bytes

Iterator Pattern

Definition

The Iterator Pattern provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

Design principle

A class should have only one reason to change

Class diagram schema for Iterator pattern

Alt text

Class diagram of Iterator Pattern example

Alt text