예제 #1
0
        static void Main(string[] args)
        {
            Dog p = new Pudle();

            p.name = "푸들이";
            p.jitda();
            ((Pudle)p).work();

            Dog j = new Jindo();

            j.name = "진도이";
            j.jitda();
            ((Jindo)j).run();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Pudle p = new Pudle();

            p.name = "푸들이";
            p.jitda();
            p.work();

            jindo j = new jindo();

            j.name = "진도이";
            j.jitda();
            j.run();
        }