What is the difference between the Iterator and Composite patterns?
- None of the above
- The Iterator and Composite patterns are the same
- The Iterator pattern composes objects into tree structures to represent part-whole hierarchies, while the Composite pattern provides a way to access the elements of a collection object in a sequential manner
- The Iterator pattern provides a way to access the elements of a collection object in a sequential manner, while the Composite pattern composes objects into tree structures to represent part-whole hierarchies
The Iterator pattern provides a way to access the elements of a collection object in a sequential manner, while the Composite pattern composes objects into tree structures to represent part-whole hierarchies
Loading...