Which pattern wraps an incompatible legacy API behind the interface your app expects?
Practice this question from Quiz: Design Patterns, with options and an explanation.
Question
Which pattern wraps an incompatible legacy API behind the interface your app expects?
Option A — Correct answer
Adapter
Adapter converts the interface of an existing class into another interface clients expect.
Option B
Factory
Option C
Observer
Option D
Strategy