>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement