General information
Category:
Object Oriented Programming
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only