public void Payday(PayCheck payCheck) { payCheck.GrossPay = Classification.CalculatePay(payCheck); payCheck.Deductions = Affiliation.CalculateDeductions(payCheck); payCheck.NetPay = payCheck.GrossPay - payCheck.Deductions; Method.Pay(payCheck); }
public abstract double CalculatePay(PayCheck payCheck);
public abstract double CalculateDeductions(PayCheck payCheck);
public abstract void Pay(PayCheck payCheck);