© James E. McDonough 2017

James E. McDonough, Object-Oriented Design with ABAP, 10.1007/978-1-4842-2838-8_18

18. Iterator Design Pattern

James E. McDonough

(1)Pennington, New Jersey, USA

The next stop on our voyage through the Design Patterns galaxy takes us to the Iterator design pattern, another of the design patterns found in the GoF catalog. We will find this design pattern useful when we need to access the elements of a structure sequentially without having to know the representation of those elements.

One of the things we should endeavor to avoid when writing code is having our programs know too much about how other entities manager their information. These other entities expose this information externally by not adhering sufficiently to ...

Get Object-Oriented Design with ABAP: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.