Common problems occurring in software
development, they can be solved with help of reusability of design patterns.
The patterns typically show relationships and interactions between classes or
objects. It helps you make your code reusable and flexible. The main topic under
discussion here is design patterns. There are different design patterns like singleton design patterns come under
creational design patterns.
In series of few articles, we are trying to provide brief knowledge of design patterns. For completeness of the series of next few articles, lets go quickly through all different types of design patterns.
In series of few articles, we are trying to provide brief knowledge of design patterns. For completeness of the series of next few articles, lets go quickly through all different types of design patterns.
There are different types of design patterns:
- Creational-
Main object here is class instantiation or object creation. Creational design patterns
are the Factory Method, Abstract Factory, Builder, Singleton, Object Pool,
and Prototype.
- Structural- Main object here is
organizing different classes and objects to form larger structures and
provide new functionality. Structural design patterns
are Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Private
Class Data, and Proxy.
- Behavioral- Main object here is identifying common communication patterns between objects and realize these patterns. Behavioral patterns are Chain of responsibility, Command, Interpreter, Iterator, Mediator, Memento, Null Object, Observer, State, Strategy, Template method, Visitor.
References:
https://www.geeksforgeeks.org/design-patterns-set-1-introduction/
https://sourcemaking.com/design_patterns/creational_patterns