using
System;
namespace
methodoverriding
{
class
Program
{
static
void
Main(
string
[] args)
{
employee obj =
new
employee();
obj.display();
Console.ReadLine();
}
}
public
class
cls
{
public
virtual
void
display()
{
Console.WriteLine(
"hello"
);
}
}
public
class
employee : cls
{
public
override
void
display()
{
Console.WriteLine(
"welcome"
);
}
}
}