Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to Visual Foxpro
Message
De
27/05/2008 16:22:46
 
 
À
27/05/2008 15:53:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01319496
Message ID:
01319794
Vues:
16
>I'm not knowledgeable enough to answer that. I believe the number of subclasses is unlimited, but don't quote me. I know that C# supports single class inheritance only - you can specify only one base class to inherit from. However, it does allow multiple interface inheritance. You just can't inherit from multiple base classes (you have to use an interface and dup all base classes). There was a discussion here on the UT about it. The biggest issue was that most see using multiple inheritence as bad design. I think if the business need warrants it, do it. I certainly don't want to open that can of worms again! :o)

If you consider what people were advised at very begining (you subclass base classes before doing anything else then you subclass it further for each project specifics etc) then add common usage of dev frameworks with VFP, and multiple inheritance becomes natural question for almost anybody comming from VFP.

Multiple inheritance (over 3 levels) for sake of it is bad design. But there are cases when 2-3 levels build themselves up quiet naturally.
Hey, how about listeners for instance ??
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform