Multiple choice technology programming languages

Which of the following are true about the Bridge and Adapter patterns?

  1. The Adapter pattern implements an interface known to its clients and provides an instance of a class not known to its clients.

  2. The Bridge pattern implements an interface known to its clients and provides an instance of a class not known to its clients.

  3. The Adapter pattern creates a separation between abstractions and classes that implement those abstractions.

  4. The Bridge pattern creates a separation between abstractions and classes that implement those abstractions.

Reveal answer Fill a bubble to check yourself
A,D Correct answer
Explanation

Adapter wraps an incompatible class to match an expected interface, making unrelated classes work together. Bridge separates abstraction from implementation so both can vary independently. Adapter is about making incompatible interfaces compatible after-the-fact, while Bridge prevents permanent binding between abstraction and implementation.