Beispiel #1
0
        static void Main(string[] args)
        {
            try
            {
                Dog dog      = new Dog();
                Dog labrador = new Labrador();

                dog.Feed();
                labrador.Feed();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            try
            {
                Dog dog = new Dog();
                Dog labrador = new Labrador();

                dog.Feed();
                labrador.Feed();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            Console.ReadKey();
        }