private static void Tester(ITurkey turkey) { Console.WriteLine("Here the method called is Gobble that belongs to Turkey \n"); turkey.Fly(); turkey.Gobble(); }
public void Quack() { _turkey.Gobble(); }
public void Quack() { moTurkey.Gobble(); }
public string Quack() { return(_turkey.Gobble()); }
public void Quarck() { turkey.Gobble(); }
static void TestTurkey(ITurkey turkey) { turkey.Gobble(); turkey.Fly(); }
public static void TurkeyClient(ITurkey turkey) { Console.WriteLine(turkey.Gobble()); Console.WriteLine(turkey.Fly()); }
public override void Quack() { _turkey.Gobble(); }
public void Quack() => turkey.Gobble();
static void TestDuck(ITurkey turkeyInterface) { turkeyInterface.Gobble(); turkeyInterface.Fly(); }
private static void TestTurkey(ITurkey turkey) { turkey.Gobble(); turkey.Fly(); }
public override void PerformQuack() { turkey.Gobble(); }
public static void TestTurkey(ITurkey t) { t.Gobble(); t.Fly(); }
public void Quack() { _turkey.Gobble(); // imitate quack :) }
static void TestTurkey(ITurkey turkey) { turkey.FLy(); turkey.Gobble(); }