Files
design-patterns-cpp/bridge
Jakub Vojvoda 8d90b8dbad init Bridge
2016-09-13 22:44:52 +02:00
..
2016-09-13 22:44:52 +02:00
2016-09-13 22:44:52 +02:00

Bridge

Decouple an abstraction from its implementation so that the two can vary independently.

When to use

  • you want to avoid a permanent binding between an abstraction and its implementation
  • both the abstractions and their implementations should be extensible by subclassing
  • changes in the implementation of an abstraction should have no impact on clients
  • you want to hide the implementation of an abstraction completely from clients