Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclass question
Message
From
21/07/1998 13:05:49
 
 
To
21/07/1998 12:59:54
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00119748
Message ID:
00119751
Views:
12
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 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform