I recently gave a presentation on Composite Pattern. I had used this pattern earlier in my life without knowing that its name is ‘Composite Pattern’. Learning what you have already implemented becomes easy and I believe that you absorb more out of it.
I referred Gang of Four and Head First Design Pattern books for preparing the presentation. Head First has a very good explanation of using Iterator Pattern with the Composite Pattern and Gang of Four cover mostly most of the issues you can come across while implementing this pattern. I also developed code to demonstrate the usage of the pattern. Sometimes reading code gives more information as compared to the text.
I am sharing the presentation we made. If you have any questions then leave me a comment and I will answer it.
Link to Download Presentation: Composite Pattern