Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I skip the parent method?
Message
 
À
01/01/1998 20:26:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00068824
Message ID:
00068854
Vues:
25
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform