Skip to content
Sharp

Design patterns · interview question

In a checkout system, shipping cost calculations require data from a new web service, but the current system uses an older API. Which pattern helps integrate these systems?

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

Correct answer

A. Adapter

Why

The Adapter pattern is used to bridge the gap between incompatible interfaces, allowing the new web service to be used where the old API was expected.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →