コード例 #1
0
        private static void Main(string[] args)
        {
            Player b = new Forwards("巴蒂尔");
            b.Attack();

            Player m = new Guards("麦迪");
            m.Attack();

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

            Console.ReadLine();
        }
コード例 #2
0
        private static void Main(string[] args)
        {
            Player b = new Forwards("巴蒂尔");

            b.Attack();

            Player m = new Guards("麦迪");

            m.Attack();



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

            y.Attack();
            y.Defense();

            Console.ReadLine();
        }