Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy classes to new applications or use central classes
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00144539
Message ID:
00145337
Vues:
49
>By "stable enough" I meant that the class works fine "as is" there isn't any big reason to use bClass components inside.

Gotcha.

>Factory patterns can be useful. My dfHGrid class has properties that allow the floating shape to come from a user specified class/classlib.

This is a cool thing about VFP: you can instantiate a class from a string. Where you'd have to write a factory method in C++, you can just set a property in VFP.

>So the grid is it's own factory instead of using another factory object.

Most of the time, the factory isn't a separate object--it's just an (overrideable) method that a class calls instead of instantiating objects directly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform