I have been reading about design patterns but do not understand the bridge pattern can some one explain it to me?
I have been reading about design patterns but do not understand the bridge pattern can some one explain it to me?
http://www.dofactory.com/Patterns/PatternBridge.aspx
I don't suppose this helps at all?
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.
Last edited by curlious; 12-11-2004 at 10:18 PM.
It sounds like that abstraction is the public functions of a class and
implementator is the private functions
source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense
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.