OOP & Design Patterns - Iterator & Composite Pattern - Traversal Abstractions
Consider the following Python code implementing the Composite pattern with iterators. Given a composite with two leaves named 'A' and 'B', what will be the output of iterating over the composite's iterator and collecting the names in order?
