January 13, 2014

Categories of Patterns - Design Pattern

Types of Design Patterns

As mentioned in earlier post, there are 3 categories of deign patterns.
  1. Creational Patterns
  2. Structural patterns
  3. Behavioral Patterns
Creational patterns
The names creational itself conveys, that the design patterns under this category, all revolve around object creation in terms of who, what, how and when. Creational patterns all the systems separate the process of object creation, composition and representation. Creational pattern hide the detail of how the object / instance of classes are created.


Patterns falling under this category are:
  • Singleton pattern
  • Factory pattern
  • Abstract factory pattern
  • Prototype and 
  • Builder pattern
Structural patterns
Structural patterns revolve around the class and object composition, what I mean is it helps us to understand how different classes in a system are glued together in a extensible and flexible manner. The object composition shows ways to compose objects to obtain new functionality.

Patterns falling under this category are
  • Adapter pattern
  • Bridge
  • Composite
  • Façade
  • Proxy
  • Flyweight
  • Decorator
Behavioral pattern
Describe the way object and classes behave / interact and divide the responsibility among them. Thee pattern are more concerned with the communication between objects and classes.

Pattern falling under this category are:
  • Command
  • Interpreter
  • Iterator
  • Mediator
  • Observer
  • State
In the next post I will tart explaining in detail patterns falling under Creational pattern


Thanks,
Husain Patel

No comments:

Post a Comment