Skip to main content

Bridge

The Bridge design pattern decouples an abstraction from its implementation so that the two can vary independently.

Usage     Usage     Medium-low

UML class diagram

diagram

Sample code

This structural code demonstrates the Bridge pattern which separates (decouples) the interface from its implementation. The implementation can evolve without changing clients which use the abstraction of the object.

Output

See also