Skip to content
Sharp

Design patterns · interview question

In a system that frequently changes APIs, how can the Adapter pattern help maintain compatibility?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsproxy-and-adapter
Choose one answer
Answer and explanation

Correct answer

D. By translating new APIs to match existing client interfaces

Why

The Adapter pattern helps by translating new API interfaces to match the existing ones expected by clients, ensuring compatibility despite frequent changes.

Test yourself on Design patterns

A free test with instant, explained results. No account needed.

Start free test
All Design patterns questions →