Open main menu

CDOT Wiki β

Changes

Bridge

1,108 bytes removed, 09:52, 11 June 2007
Consequences
<li>implements the Implementor interface and defines its concrete implementation.</li>
</ul>
</ul>
 
== Consequences ==
The Bridge pattern has the following consequence:
<ul>
<li>'''Decoupling interface and implementation'''
<ul><li> inheritance tightly couples an abstraction with an implementation at compile time. Bridge pattern can be used to avoid the binding between abstraction and implementation and to select implenetation at run time</ul>
<li>'''Improved extensibility'''
<ul><li> extend the Abstraction and Implementor hierarchies independently</ul>
<li>'''Hiding implementation detail from clients'''
<ul><li> shield clients from implentation details, like the sharing of implemntor objects and accompanying reference count merchanism</ul>
<li>'''Interface and implementation can be varied independently'''
<ul><li> maintaining two different class hierarchies for interface and implementation entitles to vary one independent of the other</ul>
<li>'''Lossely coupled client code'''
<ul><li> Abstraction separates the client code from the implementation</ul>
<li>'''Reduction in the number of sub classes'''
<li>'''Cleaner code and Reduction in executable size'''
<li>'''Adds complexity'''
</ul>
1
edit