Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design patterns
Message
From
15/01/2002 03:38:00
Martin Van Krieken
Capgemini Nederland Bv
Utrecht, Netherlands
 
 
To
14/01/2002 06:47:21
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00604191
Message ID:
00604738
Views:
25
Thanks Andy,

I think the basis for our discussion was this line in the consequences section:
"It's even possible for an object to change its implementation at run-time."

You say this should not be done. When you do use a stategy, right?

Martin van Krieken


>Actually you will find that most design patterns either use, or are based on, the bridge. It is probably the most fundamental pattern. However, what really matters in the context of a pattern is the "Intent".
>
>You are correct in noting that the result of implementing a strategy pattern is actually a bridge. However, a Strategy is not static; the idea is that different objects can be used at one side of the bridge depending on circumstances. So the intent of the two patterns is quite different.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform