Saturday, 5 March 2022

Design Patterns

 # What are design Pattern

- Design Patterns are reusable solutions to recurring problem.
- They are generally targeted at solving the problems of object generation and management.
- In other words, Design patterns acts as templates which can be applied to the real-world programming problems.

# Types of Design Patterns

- There are mainly 3 types of design patterns. They are Creational, Structural and Behavioural.

# Creational design patterns
- These patterns deal with object creation and initialization.
- Creational pattern gives the program more flexibility in deciding which objects need to be created for a given case.
- examples are: Singleton, Factory and Abstract Factory etc

# Structural design patterns
- This pattern deals with class and object composition.
- In simple words, This pattern focuses on decoupling interface, implementation of classes and its objects.
- examples are:  Adapter,  Facade and Bridge etc.

# Behavioural design patterns
- These patterns deal with communication between Classes and objects.
- Examples are: Chain of Responsibility, Command and Interpreter etc.


No comments:

Post a Comment

Search This Blog

Creating your first "Alexa" Skill

Index What is Alexa What is Alexa Skill? Why is it required when Alexa already equipped with voice assistant? Dev...