Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclass question
Message
De
21/07/1998 13:11:30
 
 
À
21/07/1998 13:08:43
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00119748
Message ID:
00119755
Vues:
14
Rex ---

ROLFMAO...cool...I rant from time to time myself...occupational hazard.

>>Rex ---
>>
>>Depends on how you are overriding Method2 in that instance. If you just blank out any code there, it will run the superclass code for Method2. If you want it to have -no- behavior, place a RETURN in the method at the instance level.
>>
>>
>>>All,
>>>
>>>I have a class with 2 custom methods, Method1 and Method2.
>>>Both have code. I drop the object on a form and override Method2. When I run the form, I call Method1 of the object which runs the code in the superclass. Method1 calls this.Method2 which I thought would run the overriden Method2 in my object, but it is running the superclass Method2.
>>>
>>>Did I miss something about inheritance?
>>>
>>>TIA
>>>
>>>Rex
>
>John,
>
>Sorry for the premature message, I overrode the wrong method.
>Please disregard previous rantings
>
>Thanks
>
>Rex
------------------------------------------------
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