using System;
publicabstractclass Employee
{
publicabstract string Name
{
get;
}
}
class Engineer: Employee
{
string name = "Engineer";
public override string Name
{
get
{
return(name);
}
}
}
class MainClass
{
publicstaticvoid Main()
{
Employee d = new Engineer();
Console.WriteLine("Name: {0}", d.Name);
}
}