abstract class Animal
{
// abstract method: no body here
public abstract void MakeSound();
// a normal method is still allowed
public void Sleep()
{
Console.WriteLine("Zzz...");
}
}
class Pig : Animal
{
public override void MakeSound()
{
Console.WriteLine("The pig says: oink oink");
}
}