public class FullTimeEmployee
public int ID {get; set;}
public string FirstName {get; set;}
public string LastName {get; set;}
public int AnnualSalary {get; set;}
public string GetFullName()
return this.FirstName + " "+ this.LastName ;
public class ContractTimeEmployee
public int ID {get; set;}
public string FirstName {get; set;}
public string LastName {get; set;}
public int HourlyPay {get; set;}
public int TotalHours {get; set;}
public string GetFullName()
return this.FirstName + " "+ this.LastName ;
return this.TotalHours * this.HourlyPay ;
public static void Main()
FullTimeEmployee fte = new FullTimeEmployee();
fte.FirstName = "Lalitha";
fte.LastName = "Devidasan";
fte.AnnualSalary = 120000;
Console.WriteLine(fte.GetFullName());
Console.WriteLine(fte.GetSalary());
ContractTimeEmployee cte = new ContractTimeEmployee();
Console.WriteLine(cte.GetFullName());
Console.WriteLine(cte.GetSalary());