Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why you need to upgrade NOW
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00556772
Message ID:
00560135
Vues:
41
>Mike,
>
>>> Or can IMPLEMENTS be used with native Fox objects (in other words giving Fox classes pseudo-multiple-inheritance)?
>>
>>IMPLEMENTS cannot be used in that manner, and I'd argue that you wouldn't want to anyway. Multiple inheritance: yuck.
>
>I agree about multi. inheritance, but the implements clause (as used in Java) allows the mult. inheritance of behavior without having to totally meld to classes. I hear it is an elegant compromise, though my Java knowledge (almost none) doesn't really give me the right to talk... *smile*
>
>JoeK

A recent article in FoxTalk was about decorating a class/object instead of subclassing it. At the end, it mentioned the strategy could be used to simulate multiple inheritance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform