Changes

Jump to: navigation, search

Bridge

71 bytes added, 21:06, 1 March 2007
Consequences
== 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'''
</ul>
== Implementation ==
1
edit

Navigation menu