Skip to content

It contains explain and example of various Design Pattern

Notifications You must be signed in to change notification settings

dhanabal-s/Design-Pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Design Pattern

Design Pattern is a general reuseable solutions to the problems which are commonly occurring in time of software Design.

Gang Of Four peoples design those Design Pattern under the two main principles.

Principles of Design Pattern

  • Favor object composition over inheritance.
  • Code for interface not for implementation

Types of Design Patterns

  1. Creational Patterns
  2. Structural Patterns
  3. Behavioral Patterns

Under these three we have 23 Design Patterns.

Creational Patterns

Creational Design Pattern Deals with the Object creation. It helps to solve problems in creating object in different situations.

Types of Creational Patterns

  1. Singleton Pattern
  2. Factory Pattern
  3. Abstract Factory Pattern
  4. Builder Pattern
  5. Prototype Pattern

Structural Patterns

Structural patterns explain how to assemble objects and classes into larger structures while keeping these structures flexible and efficient.

Types of Structural Patterns

  1. Adapter Pattern
  2. Bridge Pattern
  3. Composite Pattern
  4. Decorator Pattern
  5. Facade Pattern
  6. Flyweight Pattern
  7. proxy Pattern

Behavioral Patterns

Behavioral design patterns are concerned with algorithms and the assignment of responsibilities between objects.

Types of Behavioral Patterns

  1. Chain of Responsibility Pattern
  2. Command Pattern
  3. Interpreter Pattern
  4. Iterator Pattern
  5. Mediator Pattern
  6. Memento Pattern
  7. Observer Pattern
  8. State Pattern
  9. Strategy Pattern
  10. Template Pattern
  11. Visitor Pattern