static void case4() { Object x; x = 4; Console.WriteLine(x.GetType()); x = "String"; Console.WriteLine(x.GetType()); x = new Man(); Console.WriteLine(x.GetType()); }
public static void case5() { Console.WriteLine("\nCase 5:\n"); Object x; x = 10; Console.WriteLine(x.GetType()); x = "Hello"; Console.WriteLine(x.GetType()); x = new Man(); Console.WriteLine(x.GetType()); }