Information générale
Catégorie:
Programmation orienté objet
Mike,
Does this allow using members created in the base class, but populated in the child class?
In my case I have a base business object that I subclass for my application. In the application class I populate the ConnectString property, but if I use the base class type, I can't see the connect string.
How can I do this?
TIA
Rex
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement