Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buttons on toolbar
Message
From
23/10/2000 13:16:36
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00431510
Message ID:
00432993
Views:
21
Ko:

These are called Design Patterns and not OO Heuristics (Heurictic: An algorithm which usually, but not always, works or which gives nearly the right answer). Pick up a copy of Design Patterns by Gamma for more information about several OO issues and solutions. Not necessarily easy to read (being a mathematician helps) but really rewarding. I agree with Jim's point about late composition but it's not the only solution. For exapmle, instead of subclassing the container, you may want to assign behavior objects at runtime and delegate all responsibilities to them. By the way, Design Patterns provide guidelines about when to use a pattern instead of another one.

If you are also interested in heuristics (the best known example is the Traveling Salesman problem), I suggest you pick up a book on Operational Research. You may find understanding heuristics a little complex unless you have some formal backgroung in mathematics but nothing prevents you from applying them.

Hope it helps,
Daniel


If you
Previous
Reply
Map
View

Click here to load this message in the networking platform