The Bridge pattern separates an abstraction from its implementation so that the two can vary independently. What is the core structural mechanism?
-
A
Inheritance hierarchy only
-
B
Composition — the abstraction holds a reference to the implementation
-
C
Static method delegation
-
D
Interface default methods