Use cases
Using the bridge pattern is a good idea when you want to share an implementation among multiple objects. Basically, instead of implementing several specialized classes, defining all that is required within each class, you can define the following special components:
- An abstraction that applies to all the classes
- A separate interface for the different objects involved
An implementation example we are about to see will illustrate this approach.