![](http://files.rjwebdesign.cz/i2/20200325-091244.png)

![](http://files.rjwebdesign.cz/i2/20200325-091441.png)
- Your leaf nodes and composites must implement the same component interface.
- Your composite classes must have methods to both add and remove leaf nodes.
- To treat a group of objects the same way as a single instance of the object.