-
Singleton Pattern: This pattern involves a single class which is responsible to create an object while ensuring that only a single object gets created. This class provides a way to access its only object which can be accessed directly without the need to instantiate the object of the class.
-
Factory Pattern: This pattern involves one super-factory class which creates other factories. This factory is also called a factory of factories. This type of design pattern comes under the creational pattern.
-
Abstract Factory Pattern: This pattern provides ways to create, encapsulate a group of individual factories that have a common theme without specifying their concrete classes.
-
Builder Pattern: This pattern builds a complex object using simple objects and using a step by step approach.
-
Prototype Pattern: This pattern refers to creating duplicate objects while keeping performance in mind.
-
Adapter Pattern: This pattern works as a bridge between two incompatible interfaces.
-
Bridge Pattern: This pattern is used to separate out the interface from its implementation so that both can be modified independently.
-
Composite Pattern: This pattern is used where we need to treat a group of objects in a similar way as a single object.
-
Decorator Pattern: This pattern allows a user to add new functionality to an existing object without altering its structure.
-
Facade Pattern: This pattern hides the complexities of the system and provides an interface to the client using which the client can access the system.
-
Flyweight Pattern: This pattern tries to reuse already existing similar kind objects by storing them and creates new ones only when no matching object is found.
-
Proxy Pattern: This pattern provides a surrogate or placeholder for another object to control access to it.
-
Chain of Responsibility Pattern: This pattern creates a chain of receiver objects for a request.
-
Command Pattern: This pattern encapsulates a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations.
-
Interpreter Pattern: This pattern provides a way to evaluate language grammar or expression.
-
Iterator Pattern: This pattern is used to get a way to access the elements of a collection object in a sequential manner without any need to know its underlying representation.
-
Mediator Pattern: This pattern provides a mediator between communicating objects to reduce dependencies.
-
Memento Pattern: This pattern is used to restore the state of an object to a previous state.
-
Observer Pattern: This pattern is used when there is one-to-many relationship between objects such as if one object is modified, its dependent objects are to be notified automatically.
-
State Pattern: This pattern allows an object to alter its behavior when its internal state changes.
-
Strategy Pattern: This pattern allows selecting an algorithm at runtime.
-
Template Pattern: In this pattern, an abstract class exposes defined ways/templates to execute its methods.
-
Visitor Pattern: In this pattern, we use a visitor class which changes the executing algorithm of an element class.