Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VS LightSwitch (KittyHawk) has VFP roots
Message
From
05/08/2010 04:50:21
 
 
To
04/08/2010 10:54:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01474984
Message ID:
01475251
Views:
114
>You can do multiple inheritance of interfaces.

Technically correct. But the practice feels like bycicle with an added support motor
(weak and unbalanced) compared to a current motorbike (Python)

>While other types of inheritance can work, more often than not, they cause more problems. Think about inheriting multiple Error methods. Which one fires?

Last century in C++ I did not try to force MI, but checking out Python I overindulged in it,
partly to get a "feel" for the problems occurring when using not the best tool for a task.

I did not run into the troubles usually cited - and for the Error problem the declaration order
specifies the lookup order for the method. If you need something different from that,
overriding the problematic method is easy [and better OOP in my book: only program the difference]
and if you need, you can call none, a specific parent class method or a combination of them via
the classname of the parentclass. Not a problem, but an opportunity <g>.

my 0.02 EUR

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform