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!

CPSC210 - D4b: Composite Continued

By Steven Wolfman

CPSC210 - D4b: Composite Continued

  • 123