Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can be read method code at runtime ?
Message
De
19/11/1999 13:15:11
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
19/11/1999 12:54:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00292948
Message ID:
00293163
Vues:
24
Yes, there is a great deal of difference between a method that is intended to be filled in at the subclass level and commonly *overriding* parent method code, which is, I believe, the distinction in what DF is saying.

Indeed if I'm using DODEFAULT (or think I will be) I've started creating the primary method as hidden/private and then putting in a pre/post hook call that he subclass then fills in.

Then the subclass only has access to the method that it's safe to write in.

This is helped me a lot in starting to manage these darned hierarchies.

>This is not always true David. My framework relies heavily on hooked methods that are empty in the class definition, and over half of the code that I write at the instance level is in methods that are empty in the class definition.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform