Iterator Pattern
The Iterator Pattern is a behavioral design pattern that provides a standard way to sequentially access the elements of a collection without exposing its underlying representation, letting client code traverse arrays, lists, trees, or other structures through a uniform interface.
7 resources across 3 libraries
Glossary Terms(4)
Mediator Pattern
The Mediator Pattern is a behavioral design pattern that centralizes communication between a set of interacting objects into a single mediator object, so those…
Composite Pattern
The Composite Pattern is a structural design pattern that composes objects into tree structures to represent part-whole hierarchies, letting clients treat indi…
Chain of Responsibility Pattern
The Chain of Responsibility Pattern is a behavioral design pattern that passes a request along a chain of handler objects, each of which decides either to proc…
Iterator Pattern
The Iterator Pattern is a behavioral design pattern that provides a standard way to sequentially access the elements of a collection without exposing its under…
Study Notes(1)
Interview Questions(2)
What is the Iterator Pattern?
The Iterator pattern provides a standard way to access the elements of a collection sequentially without exposing its underlying representation, using a separa…
What is an Inner Class in OOP?
An inner class is a non-static nested class that holds an implicit reference to an instance of its enclosing class, giving it direct access to that instance’s…