Design Pattern Basics

In Software Design- Design Patterns are reusable solutions to commonly occurring problems. The word “pattern” means if similar kind of problem occurs across multiple applications/in different situations, then this problem can be solved in a standard way. Each Design Pattern concentrates on a particular aspect of the problem.

Each Pattern consists of the following-

  • The pattern name
  • The Problem & Conditions to which it may be applied
  • The Solution
  • The Consequences

According to the uses and purposes Design Patterns are categorized into 3 areas.

  • Creational Design Pattern- Handles the class object creation process or class instantiation
  • Behavioral Design Pattern- Focuses on the object behavior and responsibility
  • Structural Design Pattern- Focuses on the structure of different objects
Creational PatternsBehavioral PatternsStructural Patterns
SingletonChain of ResponsibilityAdapter(Object/Class)
Simple FactoryCommandBridge
Factory MethodInterpreterComposite
Abstract FactoryIteratorDecorator
BuilderMediatorFacade
PrototypeMomentoFlyweight
ObserverProxy
State
Strategy
Visitor
Template

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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