Esempio 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();
        }
Esempio 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();
        }