Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When is NODEFAULT used?
Message
 
 
À
22/04/1999 12:46:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00211090
Message ID:
00211146
Vues:
25
>>Hello,
>>I don't know, in which cases the function NODEFAULT is used. Can anyone tell me when this function is helpful?
>
>You use it whenever you don't want the default behavior of any parent classes to be executed in addition to the code that you add to a method. If you want to completely override the parent behavior (as opposed to extending it, relying on the code in the parent class(es) to implement some part of the functionality) you add the NODEFAULT statement to the method code.
>
>>Thanks in advance

I understand. But isn't the 'default' superclass method suppressed automatically, if I write code in the method, and do not add DODEFAULT()?
Then it would be only needed to say NODEFAULT() if no code is added in the method, and I want to suppress the class behavior.
Is this correct?
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform