differences between the ways to cast an object
- by Vytas999
What are the differences between the following ways to cast an object?
1 object t = new Cat("Tom");
2 object j = new Mice("Jerry");
3 Console.WriteLine( t as Mice );
4 Console.WriteLine( (Cat)j );