Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Player a = new Forwards("阿忠");
            a.Attack();
            Player s = new Guards("小政");
            s.Attack();

            Player ym = new Translator("姚明");
            ym.Attack();
            ym.Defense();

            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Player a = new Forwards("阿忠");

            a.Attack();
            Player s = new Guards("小政");

            s.Attack();

            Player ym = new Translator("姚明");

            ym.Attack();
            ym.Defense();

            Console.ReadKey();
        }