Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible to change methods in a Class?
Message
 
To
10/09/1998 11:26:17
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00135025
Message ID:
00135232
Views:
10
>So you're saying that you create several different classes with the same methods and properties (but the source or values in those PEMs may be different) and then create an instance of the applicable object?

That's right. Typically, you'd define an abstract superclass that encompasses the range of strategies for a given purpose (such as sorting), define concrete subclasses for each particular strategy (e.g., bubble sort, quicksort), and let clients instantiate whichever one is most appropriate at runtime. (I could give a better example if I knew what the original questioner's needs were).

It's in "Design Patterns."
Previous
Reply
Map
View

Click here to load this message in the networking platform