Design Pattern: Iterator Pattern

Iterator pattern is used when we need to traverse through a list of items. Iterator pattern hides the complexity of the iteration process and makes it easier to go through a list of items.