Design Patterns (GoF) (50 Qs)•Part 3: Architectural Patterns & Enterprise Systems (25 - 35)
What is the Bridge Pattern and how does it prevent a Cartesian explosion of subclasses?
junior Leveldesign-patternsArchitectural Patterns
In Simple Words: The Bridge Pattern decouples an abstraction from its implementation so that both can vary independently. Instead of multiplying classes ($M$ views $\times$ $N$ platforms = $M \times N$ classes), the abstraction holds a reference to an implementation interface ($M + N$ classes).