Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Factory pattern
Message
De
15/04/2011 08:58:55
Walter Meester
HoogkarspelPays-Bas
 
 
À
10/04/2011 22:05:18
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:
01507456
Vues:
141
I beg to differ here. The factory is a perfect layer between CREATEOBJECT() and the actual return of an object. That means the factory could have the logic to what exact object is returned.

So for example if I do
oObject = oFactory.Makeobject("ReportEngine")
Its the factory that decides whether MS word, Excell, Cyrstal Reports, VFP Reports or anything else is used as report engine.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform