GoF-Bridge Pattern

Details
Full Name

GoF Bridge Pattern (Structural)

Intent:

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

When to Use:

  • When you want to avoid a permanent binding between an abstraction and its implementation

  • When both the abstractions and their implementations should be extensible by subclassing

  • When changes in the implementation should have no impact on clients

Prompt Example:

"Trenne die Rendering-Abstraktion von der plattformspezifischen Implementierung nach dem GoF-Bridge Pattern, damit beide unabhängig erweitert werden können."