CPSC 210
D4b: Composite Pattern
Reminder:
Lecture Lab
edX > D4 >
Whole Class Lecture-Lab
Draw a UML Class Diagram for the existing classes.
Annotate the diagram with the changes you need to use the Composite pattern
Modify the code to implement Composite
Finally, modify
print
so that the nesting level is shown with indentation.
D4b: Composite Continued
The End - Thank You!
Made with Slides.com