Esempio n. 1
0
        static void Main(string[] args)
        {
            mouse mouse = new mouse();
            cat   cat   = new cat();
            cow   cow   = new cow();

            cat.drink("beer");
            cat.drink(cow.getmilk());
            cat.eat(mouse);
            Console.ReadKey();
        }
Esempio n. 2
0
 public void eat(mouse jery)
 {
     Console.WriteLine(name + " is eating " + jery.name);
     jery.die();
 }