>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
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