public string Name { set; get; }
public string Title { set; get; }
public int Age { set; get; }
public Employee(string n, string t, int a)
public string ShowDetail()
strReturn = Title + ": " + Name;
public class Staff : Employee{
public double DailyWage{ get; set; }
public Staff(string n, string t, int a, double d) {
public double CalculateTotalWage(int nDays){
public new string ShowDetail() {
return Title + "(staff): " + Name;
public static void Main()
Staff John = new Staff("John", "Specialist", 28, 120);
Console.WriteLine(John.ShowDetail());
John.CalculateTotalWage(250);