Design Patterns · Middle · Question 4 of 75

How does Adapter differ from Facade?

Explanation

An adapter usually wraps one object and makes it compatible with existing code. A facade defines a new, simpler interface over many objects. In practice, an API layer often combines both: a facade over HTTP and adapters for the data.

Further reading

Problem with a question

Design Patterns · Middle · question 4

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz