public static void Main()
Console.WriteLine("Hello World");
public string FirstName { get; set; }
public string LastName { get; set; }
public Contract Contract { get; set; }
public Employee(string firstName, string lastName)
public void ChangeContract(Contract newContract)
return Contract.GetSalary();
public override string ToString()
return FirstName + " " + LastName + " " + GetSalary().ToString();
public string ContractType { get; set; }
public int MonthlyRate { get; set; }
public int Overtime { get; set; }
public Contract(string type, int monthlyRate, int overtime = 0)
MonthlyRate = monthlyRate;
return MonthlyRate + (Overtime * (MonthlyRate/60));