Esempio n. 1
0
        private static void Tester(ITurkey turkey)
        {
            Console.WriteLine("Here the method called is Gobble that belongs to Turkey \n");

            turkey.Fly();
            turkey.Gobble();
        }
Esempio n. 2
0
 public void Quack()
 {
     _turkey.Gobble();
 }
Esempio n. 3
0
 public void Quack()
 {
     moTurkey.Gobble();
 }
 public string Quack()
 {
     return(_turkey.Gobble());
 }
Esempio n. 5
0
 public void Quarck()
 {
     turkey.Gobble();
 }
Esempio n. 6
0
 static void TestTurkey(ITurkey turkey)
 {
     turkey.Gobble();
     turkey.Fly();
 }
 public static void TurkeyClient(ITurkey turkey)
 {
     Console.WriteLine(turkey.Gobble());
     Console.WriteLine(turkey.Fly());
 }
Esempio n. 8
0
 public override void Quack()
 {
     _turkey.Gobble();
 }
Esempio n. 9
0
 public void Quack() => turkey.Gobble();
Esempio n. 10
0
 static void TestDuck(ITurkey turkeyInterface)
 {
     turkeyInterface.Gobble();
     turkeyInterface.Fly();
 }
Esempio n. 11
0
 private static void TestTurkey(ITurkey turkey)
 {
     turkey.Gobble();
     turkey.Fly();
 }
 public override void PerformQuack()
 {
     turkey.Gobble();
 }
Esempio n. 13
0
 public static void TestTurkey(ITurkey t)
 {
     t.Gobble();
     t.Fly();
 }
 public void Quack()
 {
     _turkey.Gobble(); // imitate quack :)
 }
Esempio n. 15
0
 static void TestTurkey(ITurkey turkey)
 {
     turkey.FLy();
     turkey.Gobble();
 }