Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy classes to new applications or use central classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00144539
Message ID:
00145294
Views:
37
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform