static void Main(string[] args)
        {
            RedMallard a = new RedMallard(); simulate(a);
            Turkey t=new Turkey();
            Duck tb = new TurkeyAdapter(t);
            simulate(tb);

            string z = Console.ReadLine();
        }
 public TurkeyAdapter(Turkey t)
 {
     this.turkey = t;
 }
Beispiel #3
0
 public TurkeyAdapter(Turkey turkey)
 {
     this.turkey = turkey;
 }