// abstract class
public abstract class Customer
{
// Abstract method (note: Not allow implementation detail)
public abstract void AbstractPrint();
// Non-abstract method
public void NonAbstractPrint()
{
Console.WriteLine("I am a non-abstract method.");
}
}
public class Program : Customer
{
public static void Main(string[] args)
{
// Must provide implementation for 'AbstractPrint' method. Override keyword is needed
public override void AbstractPrint()
{
Console.WriteLine("I am an abstract method.");
}
}
}