Bridge Pattern
Bridge Pattern
Robert Smith
Feb 23, 2009
The normal method of dealing with an abstraction
having several implementations is through
inheritance.
However, this permanently binds the
implementation to the abstraction.
This is not always flexible enough. You may want
to modify or extend the abstraction or
implementations independently.
Adapter –
Used to make 2 unrelated classes work together.
Usually applied after system is designed. Bridge
does similar work but is done up front during
design.