示例#1
0
        public override void Fight(Warrior w1)
        {
            //base.Fight(w);

            if (getHp() > w1.getHp())
            {
                Console.WriteLine("I am a Ninja and I win!");
            }
        }
示例#2
0
 public virtual void Fight(Warrior w1)
 {
     //Console.Write("I am a warrior");
 }