Design Patterns - Composite Pattern

It's been a little while again. I blame myself for installing World Of Warcraft again, too addictive.

Anyway, time for the Composite Pattern. This is one I'm having a little trouble with to describe clearly.

Let's start with the definition: "Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly."

Composite Pattern Class Diagram

Read more at http://blog.cumps.be/design-patterns-composite-pattern/

No Comments