Exemplo n.º 1
0
        public void use()
        {
            var wildDog        = new WildDog();
            var wildDogAdapter = new WildDogAdapter(wildDog);

            var hunter = new Hunter();

            hunter.Hunt(wildDogAdapter);
        }
Exemplo n.º 2
0
 public WildDogAdapter(WildDog dog)
 {
     this.mDog = dog;
 }