Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JVP's mid-tier inheritance challenge
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00324138
Message ID:
00325193
Views:
25
>>If there is one feature of OOP that is over-rated, it is multiple inheritance.
>>Yes, you can do a lot with the feature. However, I don't think it makes for
>>the best design decision when you do have it. Often, the same goes for me when
>>pondering inheritance.
>
>Without being argumentative, if you don't have multiple inheritance, how do you add right-click code to all your textboxes, editboxes, comboboxes, etc., without rewriting the same code a dozen times? I came up against this situation once, and was climbing the walls every time I realized that I had to make a small change to each one of my objects....

The Hook pattern... read all about it on www.stevenblack.com ... Actually, rightclick menus are one of the examples he uses.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform