示例#1
0
        static void case4()
        {
            Object x;

            x = 4;
            Console.WriteLine(x.GetType());
            x = "String";
            Console.WriteLine(x.GetType());
            x = new Man();
            Console.WriteLine(x.GetType());
        }
示例#2
0
        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());
        }