コード例 #1
0
ファイル: AircraftCarrier.cs プロジェクト: krasi070/OOP
        public override string Attack(Ship target)
        {
            this.DestroyShip(target);

            return "We bombed them from the sky!";
        }
コード例 #2
0
ファイル: Destroyer.cs プロジェクト: krasi070/OOP
        public override string Attack(Ship target)
        {
            this.DestroyShip(target);

            return "They didn't see us coming!";
        }
コード例 #3
0
ファイル: Warship.cs プロジェクト: krasi070/OOP
        public override string Attack(Ship target)
        {
            this.DestroyShip(target);

            return "Victory is ours!";
        }