Composite Pattern (Nomnoml)
Tree of components with leaves and composites.
What this template contains
- Source
- 4 lines
Make it your own.
[Component|+operation()]
[Leaf]-:>[Component]
[Composite|+add();+remove()]-:>[Component]
[Composite]o->[Component]