Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VS LightSwitch (KittyHawk) has VFP roots
Message
De
05/08/2010 04:50:21
 
 
À
04/08/2010 10:54:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01474984
Message ID:
01475251
Vues:
115
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform