예제 #1
0
        static void Main(string[] args)
        {
            OverrideMethod om = new OverrideMethod();

            om.Print(100);
            om.Print(3.14);

            GenericMethod gm = new GenericMethod();

            gm.Print <int>(100);
            gm.Print <string>("Generic Method");
        }
예제 #2
0
        static void Main(string[] args)
        {
            OverrideMethod om = new OverrideMethod();

            om.Print(100);
            om.Print(3.14);
            om.Print("GSM");

            Console.Write('\n');

            GenericMethod gm = new GenericMethod();

            gm.Print <int>(100);
            gm.Print <double>(3.14);
            gm.Print <string>("연진");
        }