Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I skip the parent method?
Message
 
À
02/01/1998 11:51:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00068824
Message ID:
00068956
Vues:
31
>Unfortunately TxtBase is the class that ALL my txtBoxes are based on. Doing this would now make ALL txtBoxes
>a subclass of InGrid.
>
>Bill
Bill,

The diagram got screwed up, I am suggesting that InGrid and InGrid2 each need to be separate subclasses of txtBase and not Ingrid2 being a subclass of InGrid.

If you fiund yourslef wanting to skip a level in the inheritence tree, that indicates that the subclass you are working on is NOT in fact a subclass of its superclass but is a sibling class to that one, where both will have the same superclass (in this case making both InGrid and InGrid2 subclasses of txtBase)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform