Object Cast « Class Interface « C# / C Sharp






1.Casting Objects
2.Downcast will fail.
3.This code raises an exception at run time because of an invalid cast
4.Casting objects: upcastCasting objects: upcast
5.Casting objects: downcastCasting objects: downcast
6.Variables of type object can accept values of any data type