Multiple choice general knowledge math & puzzles

This Design Pattern decouples an abstraction from its implementation so that the two can vary independently.

  1. Adapter

  2. Bridge

  3. Composite

  4. Strategy

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Bridge pattern is specifically designed to decouple an abstraction from its implementation, allowing both to vary independently. This is useful when you want to avoid a permanent binding between an abstraction and its implementation. Adapter converts interfaces, Composite composes objects into tree structures, and Strategy defines interchangeable algorithms.

AI explanation

The Bridge design pattern is defined specifically to separate an abstraction from its implementation so each can be extended or changed independently, unlike Adapter (which makes incompatible interfaces work together) or Composite/Strategy which solve different problems.