Membership
Main Menu
Forum Boards
Stats
- 20 tutorials
- 74,814 members
- 734,895 forum posts
- 13 blog posts
Tutorials
Design Patterns - Strategy and Bridge
by John Kleijn on Oct 9, 2008 9:51:16 AM
Views: 8418
Introduction
The Strategy and Bridge patterns provide solutions to apply polymorphism in more flexible way than you can accomplish with only inheritance.
The patterns are almost identical, differing mostly in intent only. Though it is this difference that create implementation variations targeting the respective problems.
Problem
Strategy
How to use different algorithms in a flexible, polymorphic way.
Bridge
How to structurally abstract a varying concept and it's implementations, in a way that doesn't break encapsulation.
Comments
1. S N on Nov 29, 2008 11:27:54 PM
2. Josh Robison on Dec 2, 2008 8:35:11 PM
3. Nous on Dec 5, 2008 1:18:30 AM
4. Nabeel on Jan 2, 2009 7:02:45 PM
Login or register to post a comment.
