Software Design

Bridge Pattern: Decoupling Control From Device

UML Class Diagrams · made in Skemio

UML class diagram illustrating the Bridge Pattern between RemoteControl abstraction hierarchy and Device implementor hierarchy.
UML class diagram illustrating the Bridge Pattern between RemoteControl abstraction hierarchy and Device implementor hierarchy.

What it shows

  • Separates the control abstraction from hardware-specific implementations.
  • Adding M remotes and N devices requires M+N classes instead of M*N.
  • Allows hardware protocols to evolve without changing user-facing controls.

The takeaway

Prefer composition over inheritance by bridging your abstraction to an independent implementor.

More uml class diagrams