PDA

View Full Version : Bridge Pattern



curlious
12-11-2004, 10:06 PM
I have been reading about design patterns but do not understand the bridge pattern can some one explain it to me?

sean
12-11-2004, 10:09 PM
http://www.dofactory.com/Patterns/PatternBridge.aspx

I don't suppose this helps at all?

curlious
12-11-2004, 10:16 PM
I need real world examples and the only thing I could think of is supposing the implementation requires the use of opengl or directx then by we can decouple the abstraction form the implementation via composition. Really I am unclear as to real examples that are meaningful.

It seems from there statement of the implementation that the abstraction almost acts like an adapter.

alphaoide
12-11-2004, 10:26 PM
It sounds like that abstraction is the public functions of a class and
implementator is the private functions

curlious
12-11-2004, 10:35 PM
So you can provide loose coupling between the public interface and the private implementation?

This seem like a good thing though I am not sure this is what it means. If so it would make it easier to change the details if the implementation by composition and abstraction of the implementor from the concrete implementations and my idea about the real world is totaly wrong.