Factory Method
Factory Method for Shape Creation
Factory Method for Logistics
Factory Method for Dialog Buttons
Self-Registering Notification Channel Factory
Abstract Factory
Abstract Factory for Widget Families
Kingdom Abstract Factory With FactoryMaker
Add ArtDeco Abstract Factory Variant
Abstract Factory for Connection Family
Builder
Fluent Builder for Immutable HttpRequest
Fluent SQL SELECT Query Builder
Staged Car Builder Contract
Director-Driven House Builder
Prototype
Independent Shape Clone With Prototype
Deep-Copy a Nested Document Graph
Prototype Registry With getClone(key)
Cycle-Safe Deep Clone Prototype
Singleton
Singleton Config With Shared Instance
Lazy Thread-Safe Singleton Logger
Object Pool
Object Pool: Acquire/Release Reuse
Bounded Object Pool Contract
Blocking Object Pool With Timeout
Reset-On-Release Object Pool
Adapter
Adapt Writer to Logger Interface
Adapter for mp4/vlc Playback
Adapter for Shipping.request
Adapter for Payment Gateways
Decorator
Decorator Pattern for Beverage Pricing
Stack Notification Channels With Decorators
Extend Decorator Set With New Condiment
Stackable DataSource Decorators
Proxy
Caching Proxy for Expensive Service
Virtual Proxy for Lazy Initialization
Protection Proxy for Role-Based Access
Smart-Reference Logging Proxy
Composite
Composite File-System Tree
Composite Org Chart Aggregation
Composite Expression Tree with evaluate()
Facade
Facade for Startup Sequence
Facade Over a Build Pipeline
Bridge
Bridge: Shape Over Vector/Raster Renderer
Bridge: RemoteControl Over Devices
Bridge Notifications Over Email/SMS
Flyweight
Flyweight Factory for TreeType
Strategy
Runtime-Swappable Payment Strategy
Pluggable Discount Pricing Strategy
Pluggable Compression Codec Strategies
Observer
Stock Ticker Observer Contract
Late-Joining Observer Receives Updates
Command
Command Pattern For Remote Control
Command Pattern Undo/Redo History
Command Pattern Job Runner
Macro Command Executes and Undoes Atomically
Template Method
Beverage-Prep Template Method
Data-Parser Pipeline Template
Game-Turn Template With Optional Hook
State
Traffic Light State Machine
Vending Machine State Pattern
State Pattern for Document Workflow
State Pattern for Media Player
Chain Of Responsibility
Support Ticket Escalation Chain
Chain of Responsibility Middleware Pipeline
Expense Approval Chain of Responsibility
Extend ATM Dispenser Chain With New Denomination
Iterator
Iterator Over a Custom Collection
Filtering Iterator over a Treasure Chest
Mediator
Implement a Chat Room Mediator
Air Traffic Control Mediator
Extend a GUI Dialog Mediator
Memento
Editor Checkpoints With Memento
Undo History With Memento Caretaker
Memento Without Leaking Originator State
Visitor
Shape Visitor for New Operations
Visitor Over an Expression AST
Interpreter
RPN Interpreter With Expression Nodes
Extend Interpreter Grammar With NOT
Null Object
Null Object: No-Op Logger
NullNode Terminator for Safe Tree Walk
Top 178 Design Patterns Interview Questions And Answers 2025 | TechPrep