The Bridge pattern has similar motivation as Adapter. However, the Adapter emphasizes the ability to change the interface of a given class while Bridge is supposed to separate the implementation details from the semantics (it seems that the interface of an Adapter is the semantics and the adaptee is the implementation details).
You can often take the Implementor as the Adaptee in Adaptor.
The important result of a Bridge is that the interface and implementation are decoupled and hence are easy to modify in future.
Subscribe to:
Post Comments (Atom)
1 comment:
Well said.
Post a Comment