Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I skip the parent method?
Message
 
À
02/01/1998 13:01:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00068824
Message ID:
00068962
Vues:
43
>Does that make sense?
>
>Bill
Bill,

Your position makes sense ok, but the situation your are facing really shows the weaknesses in inheritence as a mehtod for specialization. Especially when trying to change the parentage of a class tree (by introducing your txtbase above the Ingrid class).

How would I approach this? Weel I would decide if I wanted to use their class or not. As a matter of fact Ingrid is good example of this as I have used this class in my apps. I did not make it a subclass of my textbox base class. I left it as its own class and subclassed it and added my textbox stuff to the subclass (added my properties and methods for textboxes. My Ingrid class has its own inheritence tree with the Ingrid class at the top of the tree, the first subclass of Ingrid adds my properties and methods to it and further subclasses will specialize behavior (there are a number of classes at level three in this tree for different uses of Ingrid). This way I don't have the need to bypass a level in the tree to get the behavior that I want.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform