Skip to content

Latest commit

 

History

History

Iterator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The Iterator Pattern

Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

Design Principles

  • A class should only have one reason to change.

Cohesion

  • A measure of how closely a class or module supports a single purpose or responsibility. A module or cass that has high cohesion when designed around a set of related functions, and low cohesion when designed around a set of unrelated functions.

Additional Resources