Exemple #1
0
        static void Main(string[] args)
        {
            Bear oso = new Bear
            {
                AnimalName = "Grizzly Bear",
            };

            Chicken pollo = new Chicken
            {
                AnimalName = "El Macho Burracho",
            };

            Eagle aguila = new Eagle
            {
                AnimalName = "Bald Eagle",
            };

            AnimalUtility.DoSomething(oso);
            AnimalUtility.DoSomething(pollo);
            AnimalUtility.DoSomething(aguila);

            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Bear oso = new Bear
            {
                AnimalName = "Grizzly Bear",
            };

            Chicken pollo = new Chicken
            {
                AnimalName = "El Macho Burracho",
            };

            Eagle aguila = new Eagle
            {
                AnimalName = "Bald Eagle",
            };

            AnimalUtility.DoSomething(oso);
            AnimalUtility.DoSomething(pollo);
            AnimalUtility.DoSomething(aguila);

            Console.ReadLine();
        }