Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I skip the parent method?
Message
 
To
02/01/1998 13:01:33
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00068824
Message ID:
00068962
Views:
36
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform