<aside> š” A Design Pattern is a general, reusable solution to a commonly occurring problem within a given context.
</aside>
Design Patterns are the solutions to commonly occurring problems inĀ software design.
There are a number of Design Patterns that can be used in Software Development-
Builder pattern-
In a builder pattern, you are only concerned about what you need from a class and not everything that a class has.Singleton pattern-
A singleton is a class that allows only a single instance of itself to be created and gives access to that created instance.Facade pattern-
TheĀ FacadeĀ pattern provides a higher-level interface that makes a set of other interfaces easier to use.Factory pattern-
The factory design pattern is part of the Creational Design Pattern Family, The main objective of the Factory pattern is to create instances without exposing the instantiation logic to the client. A factory class controls which object to instantiate. Factory pattern comes in handy when dealing with many common objects.Observer pattern-
The observer pattern is used to allow an object to publish changes to its state. Other objects subscribe to be immediately notified of any changes.*Adapter pattern-
An Adapter is something like a connector that is used to connect two or more incompatible interface.**Command pattern-
In the Command pattern, we give commands and we want our output and nothing else.**Dependency Injection pattern
- Dependency injection is a technique in which an object receives other objects that it depends on, called dependencies.*