using System;
public class Animal
{
public void Sleep()
Console.WriteLine("I'm sleeping like an animal");
}
public class Cat : Animal
public new void Sleep()
Console.WriteLine("I'm a dreaming tiger!");
public class Program
public static void Main()
var cat = new Cat();
cat.Sleep();