Composite

1. Usage Composite is composing tree like structures as single object(container), and let clients to go through such composed objects and regular objects uniformly. Qt Library has implicit support of Composite pattern due to ability to SetParent of QObject. 2. UML class diagram (source: http://www.cs.unc.edu/~stotts/GOF/hires/pat4cfso.htm) Typical Composite Object structure: 3. Pros It makes it easy […]