R
roland.bali
Hi,
Here is the basic setup, my base class is Shoe which has a child class
called Sandal. I would like to create objects by calling Sandal.Load.
But without overloading Load in Sandal and sending the Sandal type to
the base class I can not instantiate a Sandal class from within Shoe.
Public Class Shoe
Public Shared Function Load() As Object
return ?????
End Function
End Class
Public Class Sandal
Inherits Shoe
End Class
Public Class MyShoeBox
Private mySandal as Sandal = Sandal.Load()
End Class
So, my question is: Is it possible to find out the type/class which was
actually called from within the base class?
Kind regards,
Roland
Here is the basic setup, my base class is Shoe which has a child class
called Sandal. I would like to create objects by calling Sandal.Load.
But without overloading Load in Sandal and sending the Sandal type to
the base class I can not instantiate a Sandal class from within Shoe.
Public Class Shoe
Public Shared Function Load() As Object
return ?????
End Function
End Class
Public Class Sandal
Inherits Shoe
End Class
Public Class MyShoeBox
Private mySandal as Sandal = Sandal.Load()
End Class
So, my question is: Is it possible to find out the type/class which was
actually called from within the base class?
Kind regards,
Roland