Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Abstract classes useful?
Message
 
 
À
02/06/2008 10:09:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01320973
Message ID:
01320977
Vues:
13
What exactly is the purpose of abstract classes in VFP?

>This week I noticed I was using abstract classes as concrete classes. Trying to reconstruct things I again started to doubt the usefulness of having abstract classes.
>
>Some history: I'm probably the only developer in the whole world who's actually using this great tool NewClass.app - written by myself and available to all at http://www.viafox.nl/downloads/NewClass_beta2.zip - and thereby giving structure to the names of his new classes. It is a wizardlike tool and one of the first choices to be made is whether the new class will be abstract or concrete. After a while I noticed that I had been using abstract classes in my form, notwithstanding the fact that they can be easilly recognized by the underscore at the end of their name. However, the form works perfect.
>
>The crucial issue is that there is probably no gain in having a concrete class that's totally equal to the abstract class that it is based on. On the contrary, there is likely a loss, for example because it gives useless overhead in loading.
>
>What's your opinion here?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform