Which design pattern is used to provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation?
- Decorator
- Iterator
- Observer
- Proxy
The Iterator design pattern is used to provide a way to access elements of an aggregate object sequentially without exposing its underlying representation. It abstracts the traversal mechanism and allows the client to access elements without knowing the internal structure.
Loading...
Related Quiz
- In Infrastructure as Code, _______ describes the desired state of the infrastructure.
- You're designing a new database system for a social media platform that requires high availability and scalability. Would you choose SQL or NoSQL, and why?
- Implementing _______ loading allows resources like images and scripts to be loaded asynchronously, improving overall performance.
- A unique constraint ensures that _______ values are stored in a column.
- What is the key difference between hot and cold backups in backup strategies?