Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            IAnimalSounds adapter = new CatSoundAdapter();
            var catLevel = adapter.GetAnimalSoundCatLevel();

            Console.WriteLine("Dog's sound cat level is: {0}", catLevel);

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            IAnimalSounds adapter  = new CatSoundAdapter();
            var           catLevel = adapter.GetAnimalSoundCatLevel();

            Console.WriteLine("Dog's sound cat level is: {0}", catLevel);

            Console.ReadLine();
        }