About Design Patterns

The design patterns are language independent strategies for solving common object-oriented design problems. When you make a design, you should know the names of some common solutions. Learning design patterns is good for people to communicate each other effectively. In fact, you may have been familiar with some design patterns; you may not use well-known names to describe them. SUN suggests GOF (Gang of Four—four pioneer guys who wrote a book named “Design Patterns”- Elements of Reusable Object-Oriented Software). Please make you be familiar with these terms and learn how other people solve the coding problems.

There are three well-known types of design patterns.

  1. Creational Design Patterns: Creational design patterns provide solution to instantiate an object in the best possible way for specific situations. Following design patterns come under this category.
  • Singleton Pattern
  • Factory Pattern
  • Abstract Factory Pattern
  • Builder Pattern
  • Prototype Pattern
  1. Structural Design Patterns: Structural patterns provide different ways to create a class structure, for example using inheritance and composition to create a large object from small objects. Following design patterns come under this category.
  • Adapter Pattern
  • Composite Pattern
  • Proxy Pattern
  • Flyweight Pattern
  • Facade Pattern
  • Bridge Pattern
  • Decorator Pattern
  1. Behavioural Design Patterns: Behavioural patterns provide solution for the better interaction between objects and how to provide lose coupling and flexibility to extend easily. Following design patterns come under this category.
  • Template Method Pattern
  • Mediator Pattern
  • Chain of Responsibility Pattern
  • Observer Pattern
  • Strategy Pattern
  • Command Pattern
  • State Pattern
  • Visitor Pattern
  • Iterator Pattern
  • Interpreter Pattern
  • Memento Pattern

 

Leave a Reply

Your email address will not be published. Required fields are marked *