Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DODEFAULT function for sub-classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00479534
Message ID:
00479555
Vues:
30
Hi!

It is not compile time issue. You will have little or no performance hits in such case. I do use a lot such approach - put dodefault() even when you know that parent class don't contain any code in this event. This is very useful for case when in future code will be added to that event in the parent class for more generic functionality - you will not need to review each child class for checking if it contains dodefault() for that event/method.

>We have a lot of subclasses and subclasses they got up four level of a class.
>
>Is it wise to place DODEFAULT() fucntion in any event that we modify at the form level. (Most of the time we know which class or subclass events have codes, hence we do add them those events). But what about the once where the parent does not have any event or method.
>
>If we do put the function in the object event even if the parent does not have any code, how does it effect the preformance.
>
>Is this a complie time issue (giving us a larger exe) or a run time performance issue.
>
>
>Any suggetion or comments.
>
>PS: We are trying to avoid the research/testing time at our end.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform