Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Superclass vs. Subclass structures
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00151975
Message ID:
00152439
Views:
25
>You want to avoid CASE and IF statements in OOP?

No, just those that are predicated on the type of object. That's what polymorphism seeks to avoid.

One reason is that when you introduce a new child class, you have to hunt all through your code and add another clause to those statements.
Previous
Reply
Map
View

Click here to load this message in the networking platform