public void Fight(IHero hero) { if (hero.Name.ToLower().Equals("joker")) { Console.WriteLine($"Batman captures {hero.Name}"); return; } _sideKick.Fight(hero); }
public void Fight() { _hero.Fight(); }
public void Fight(IHero hero) { if (hero.Name.ToLower().Equals("joker")) { Console.WriteLine($"Batman captures {hero.Name}"); return; } _sideKick.Fight(hero); }
public void Fight() { _hero.Fight(); }