• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Design Patterns | Bridge
  1. References
  2. Example
    • The Implementor
    • The Concrete Implementor (1)
    • The Concrete Implementor (2)
    • The Abstraction
    • The Refined Abstraction (1)
    • The Refined Abstraction (2)
    • A simple class to test the Bridge design pattern

  1. References
    • Definition: (source: http://en.wikipedia.org/wiki/Bridge_pattern)

      The intent of the bridge pattern is to "decouple an abstraction from its implementation so that the two can vary independently."

    • Class diagram: (source: http://en.wikipedia.org/wiki/Bridge_pattern)

      Bridge Pattern
  2. Example
    • The Implementor:


    • The Concrete Implementor (1):


    • The Concrete Implementor (2):


    • The Abstraction:


    • The Refined Abstraction (1):


    • The Refined Abstraction (2):


    • A simple class to test the Bridge design pattern:


© 2025  mtitek