Skip to content

aadeetyeah/DesignPatterns

Repository files navigation

DesignPatterns

A. Creational Design Patterns

1. Simple Factory

When to use Simple Factory Design Pattern?

=> When we create similar objects but the creation process is slightly different. e.g.: DeliveryOrder, TakeOutOrder, DineInOrder, etc.

UML Diagram of Simple Factory SimpleFactoryDP.drawio.png

2. Factory Method

FactoryMethodDP.drawio.png

3. Abstract Factory

AdapterFactoryDP.drawio (1).png

4. Builder

BuilderDP.drawio.png

5. Prototype

PrototypeDP.drawio.png

6. Singleton

SingletonDP.drawio.png

B. Behavioral Design Patterns

7. Observer

ObserverDP.drawio.png

8. Command

CommandDP.drawio.png

9. Chain of Responsibility

ChainOfResponsibilityDP.drawio.png

10. Strategy

StrategyDP.drawio.png

11. Template

TemplateDP.drawio.png

12. Iterator

C. Structural Design Patterns

13. Adapter

a. Object Adapter Design Pattern

ObjectAdapterDP.drawio.png

b. Class Adapter Design Pattern

ClassAdapterDP.drawio.png

14. Decorator

DecoratorDP.drawio.png

15. Bridge

BridgeDP.drawio.png

16. Composite

CompositeDP.drawio.png

17. Facade

FacadeDP.drawio.png

18. Proxy

ProxyDP.drawio.png