Professional Documents
Culture Documents
Type casting helps you to refer several object references of sub classes whose type
is resolved only at run time. The parent class object reference can hold the
objects and often there would be a method of parent class which can be used to
determine what sub class object the type cast reference is holding at run time.