J
Joe HM
Hello -
I have a Base Class where I want a New() implemented that can be called
from the outside. This New() should create an instance of the
appropriate cDerivedX Class ...
The following shows a scenario where it was determined that cDerivedA
is needed based on a configuration file.
Dim lInstance As New cBase()
This statement should then create an instance of ...
Class cDerivedA
Inherits cBase
...
End Class
During a different run the configuration file requires cDerivedB being
used ...
Dim lInstance As New cBase()
This statement should now create an instance of ...
Class cDerivedB
Inherits cBase
...
End Class
So I was trying to tweak the Public Sub New() in cBase. How can I call
the New() of the appropriate cDerivedX Class and create an instance of
it that will be accessed through lInstance?
Thanks a lot!
Joe
I have a Base Class where I want a New() implemented that can be called
from the outside. This New() should create an instance of the
appropriate cDerivedX Class ...
The following shows a scenario where it was determined that cDerivedA
is needed based on a configuration file.
Dim lInstance As New cBase()
This statement should then create an instance of ...
Class cDerivedA
Inherits cBase
...
End Class
During a different run the configuration file requires cDerivedB being
used ...
Dim lInstance As New cBase()
This statement should now create an instance of ...
Class cDerivedB
Inherits cBase
...
End Class
So I was trying to tweak the Public Sub New() in cBase. How can I call
the New() of the appropriate cDerivedX Class and create an instance of
it that will be accessed through lInstance?
Thanks a lot!
Joe