Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I skip the parent method?
Message
 
To
01/01/1998 20:26:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00068824
Message ID:
00068854
Views:
32
>I have a txtBase class.
>I have sub-classed inGrid under it (to have some of my own PEM available).
>I have sub-classed inGrid2 under that, in order to have an alternatate method of doing searches.
Bill,


Here's the class structure you have as I understadn your message


txtBase ------->> InGrid -------->> Ingrid2

and you want to bypass some of the behavior in the Ingrid class from the Ingrid2 class. I would suggest that the problem is in the class design and that the class structure that you really need is;

------>> InGrid
TxtBase |
------>> InGrid2

This remove Ingrid2 as a subclass of InGrid and thus removes the need to bypass Ingrids method code in the inheritence tree.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform