Skip to content
Sharp

Design patterns · interview question

In an e-commerce application, you must integrate a legacy payment gateway using an outdated API with your modern payment processing system. Which pattern is appropriate?

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

Correct answer

B. Adapter

Why

The Adapter pattern is suitable for integrating systems with incompatible interfaces, such as connecting a legacy API with a modern system.

Test yourself on Design patterns

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

Start free test
All Design patterns questions →