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(); }
public void eat(mouse jery) { Console.WriteLine(name + " is eating " + jery.name); jery.die(); }