Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can be read method code at runtime ?
Message
 
 
À
21/11/1999 14:22:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00292948
Message ID:
00293699
Vues:
24
Erik,

>I guess our design strategies differ here. The sort of hook I normally build into my classes is used ONLY for instance code, and this does mean that there will never be class code in there. If I find myself wanting to add class code here, it means I implemented the design wrong, and I need to rethin where to put the code... there is always a more appropriate place.

There's always several ways to design workable class designs. We always need to be careful of restrictive qualifiers like ONLY. What if you find yourself replicating the same hook code in several instances? You decide to promote that code to a subclass to avoid the replication. DODEFAULT allows the common code to be easily called and the instance is still free to have additional code.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform