Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Superclass vs. Subclass structures
Message
 
To
29/10/1998 09:10:55
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00151975
Message ID:
00152440
Views:
23
>I gotta back up Marty a bit here. While I don't necessarily completely agree with his solution, it does adequately reflect that to support polymorphism, you have to have some branch logic somewhere

Right, but I prefer the compiler/runtime take care of it. This simulates each object simply "knowing" what to do, when issued a polymorphic command. At the practical level (which is what really counts), those kind of switches are a maintenance burden that is best avoided.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform