Adapter Design Pattern
- 10Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
Which four design patterns are often confused with each other?
Adapter, Facade, Proxy, and Decorator patterns.
Or swipe the card
10 cards
Which four design patterns are often confused with each other?
Adapter, Facade, Proxy, and Decorator patterns.
What is the purpose of the Adapter pattern?
To make two incompatible interfaces compatible by wrapping one interface to match the other.
What is the purpose of the Facade pattern?
To provide a simplified interface to a complex subsystem, hiding the underlying complexity.
What is the purpose of the Proxy pattern?
To provide a surrogate or placeholder that controls access to another object, often for security, caching, or lazy initialization.
What is the purpose of the Decorator pattern?
To add behavior to an object without modifying its structure, by wrapping it with additional functionality.
What is another common name for the Adapter pattern?
Wrapper.
Which book is the video series based on?
Head First Design Patterns.
What is the planned video sequence for patterns?
First video on Adapter, second on Facade, third on Proxy, and a bonus video comparing the three.
What are some reasons to use a Proxy pattern?
Security, caching, and controlling access to an underlying object.
How does the Decorator pattern add behavior?
By wrapping the object without opening or changing its code.

Ask anything
We've read this whole study set, so questions about it get the best answers.