CPSC 210

D4b: Composite Pattern

Reminder:

Lecture Lab

  1. Draw a UML Class Diagram for the existing classes.
     
  2. Annotate the diagram with the changes you need to use the Composite pattern
     
  3. Modify the code to implement Composite
     
  4. Finally, modify print so that the nesting level is shown with indentation.

D4b: Composite Continued

The End - Thank You!

Made with Slides.com