Iterator
Access the elements of an aggregate object sequentially without exposing its underlying implementation
Probelm : in a restaurant we have 2 kind of menu that have different implementation
Access the elements of an aggregate object sequentially without exposing its underlying implementation
Probelm : in a restaurant we have 2 kind of menu that have different implementation