public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public void PrintFullName()
Console.WriteLine(FirstName + " " + LastName);
public class FullTimeEmployee : Exmployee
public double YearlySalary { get; set; }
public FullTimeEmployee() { }
public class PartTimeEmployee : Exmployee
public double HourlyWage { get; set; }
public PartTimeEmployee() { }
public new void PrintFullName()
Console.WriteLine(FirstName + " " + LastName + " - Contractor");
public static void Main()
FullTimeEmployee fte = new FullTimeEmployee();
fte.LastName = "Anderson";
PartTimeEmployee pte = new PartTimeEmployee();
pte.FirstName = "Chewei";