Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass vs. Subclass structures
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00151975
Message ID:
00152439
Vues:
27
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform