Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Factories in VB.Net
Message
From
26/11/2002 11:07:49
 
 
To
26/11/2002 10:59:37
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00727041
Message ID:
00727048
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform