Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Factory pattern
Message
De
10/04/2011 15:29:50
Walter Meester
HoogkarspelPays-Bas
 
 
À
09/04/2011 17:05:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01506688
Message ID:
01506857
Vues:
84
>A factory is used to create complex objects that need subobjects, etc. That's not the case here.

Would you not call that builders? To me a Factory creates rather simple objects. A build complex composite objects.



>>I'm not sure I follow you. Surely this is a classic use of a factory class:
>>Give me a blue car with red seats.
>>Give me a red car with a V8.
>>The factory gives you the car you want and it behaves the way you expect a car to behave......?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform