c# class method overriding
class Class1{
public virtual void display(){
Console.WriteLine("Super Class");
}
}
class Class2:Class1{
public override void display(){
Console.WriteLine("Sub Class");
}
}
static void Main(String[] args){
Class2 obj = new Class2();
obj.display();
}