예제 #1
0
        static void Main(string[] args)
        {
            var gato    = new Gato();
            var turkey  = new Turkey();
            var fakedog = new CatDog(gato);

            fakedog.Bark();
            fakedog.Bite();
            var fakedog2 = new TurkeyDog(turkey);

            fakedog2.Bark();
            fakedog2.Bite();
        }
예제 #2
0
 public CatDog(Gato gato)
 {
     this.migato = gato;
 }