OOP & Design Patterns - Iterator & Composite Pattern - Traversal Abstractions
Consider a Composite structure where a composite node contains two leaf nodes labeled 'X' and 'Y'. If you use a depth-first iterator to traverse this composite, what will be the sequence of visited nodes?
