Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Factories in VB.Net
Message
De
26/11/2002 11:07:49
 
 
À
26/11/2002 10:59:37
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Divers
Thread ID:
00727041
Message ID:
00727048
Vues:
14
>How does a Factory Pattern work in VB.Net. If I must declare a variable type for the return value,what type do I use if multiple related types can be selected?

You can use a common base class as a type, or, if they all implment the same Interface, I would use that. Interface Inheritiance is pretty cool. I imagine I will be using it at least as much as implementation Inheritiance, if not more.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform