Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Superclass vs. Subclass structures
Message
De
29/10/1998 14:45:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00151975
Message ID:
00152466
Vues:
26
Mark ----

>
>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.

Yes...you mean the DO CASE or what not should be in the object that encapsulates the behavior? Absolutely.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform