Decotator Pattern – Object Structural

Intent Attach additional  responsibility to an object dynamically. Dcorators provide flexible alternative to subclassing for extending functionality. Also Know As : Wrapper Motivation Sometimes we want to add responsibilites to individual objects, not to an entire class. Applicability Use Decorator: To add responsibilties to individual objects dynamically and transparently, that is without affecting other objects. … Continue reading Decotator Pattern – Object Structural


Composite Pattern – Object Structural

Intent Compose object intot tree structures to represent part-whole hierachies. Composite lets client treat individual objects and compositions of objects uniformly.   Motivation Graphics application like drawing editors and schematic capture systems let user build complex  diagrams out of simple components. The user can group components to form larger components, which in turn can be grouped … Continue reading Composite Pattern – Object Structural

The Catalog of Design Patterns

Below we have listed 23 desgin patterns. Their names and intents are described. Abstract Factory Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Adapter Convert the inteface of a class into another interface client excpect. Adapter lets classes work together that couldn't otherwise beacause of incompatible interfaces. Bridge Decouple … Continue reading The Catalog of Design Patterns

Describing Desing Patterns

We describe desing patterns using a consistent format. Each pattern is divided into sections according to the following template. The template lends a uniform structure to the information, making design patterns easier to learn, compare and use. Pattern Name and Classification The pattern's name conveys the essence of the pattern succinctly. A good name is … Continue reading Describing Desing Patterns