Notes: Design Patterns

Gang Of Four Book


Abstract Factory- Families of Objects (Factory of factories)

 Abstract Factory Pattern


Factory Method Pattern: Delegate Object Creation to specific base classes

 Factory Method Pattern



Builder Pattern:  Builder focuses on constructing a complex object step by step. Abstract Factory emphasizes a family of product objects (either simple or complex). Builder returns the product as a final step, but as far as the Abstract Factory is concerned, the product gets returned immediately.

Builder Pattern

Prototype: Has Clone method

Prototype Pattern



Chain Of Responsibility: Client has no direct reference to the object that ultimately fulfills it. For example Print Button.

Chain Of Responsibility


Adapter Pattern:

Adaptor Pattern


Command Pattern:

 Command Pattern




Bridge Pattern

Mediator – Object Behavioral


Mediator Pattern



Proxy Pattern




Decorator Pattern


 Strategy: Different strategies for different Implementations

 Strategy Pattern


State: State Of an Object

 State Pattern


Observer: Subscribe, Observe state change, unsubscribe

Observer Pattern


Pattern Classification

Pattern Classification


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s