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:
00145294
Vues:
39
Mark,

By "stable enough" I meant that the class works fine "as is" there isn't any big reason to use bClass components inside.

Factory patterns can be useful. My dfHGrid class has properties that allow the floating shape to come from a user specified class/classlib. So the grid is it's own factory instead of using another factory object.

>>Those components are stable enough that I've not really found a need to use a Factory to build them at run time.
>
>The Factory patten doesn't have to do with stability (as I understand it), but with the ability to call a method to create an object of the desired subclass. If you subclass a container, e.g., the superclass would call a factory method to create objects of the appropriate subclass.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform