Design Patterns - Composite PDF download

This is the first of the Design Patterns.

The intent of the Composite Design Pattern is to let clients treat individual objects and compositions of objects uniformly in a tree-hierarchy. This is accomplished through an abstract class that defines an identical interface for both primitives and their containers. The client then does not need to know if the object it is currently accessing is a single primitive or a collection of same. This allows objects to be nested almost endlessly….