S
SA
Hi all:
I have an object of a base class that needs to be cast to an object of a
specialized class.
What is the best way to do this? (I thought about creating a constructor in
the specialized class that takes an argument of the type of the base class
and then copy property values over, but that seems like a hassle)
I have an object of a base class that needs to be cast to an object of a
specialized class.
What is the best way to do this? (I thought about creating a constructor in
the specialized class that takes an argument of the type of the base class
and then copy property values over, but that seems like a hassle)