NTCode.class
//Class for NT code package com; import com.EmployeeObject4; public class NTCode { public NTCode(EmployeeObject4 employeeOb) { double grossPay = employeeOb.getGrossPay(); double totalLastPay = employeeOb.getLastPayToDate(); employeeOb.setNewTotalPay(grossPay+totalLastPay); //The employeeObjects newTaxToDate varible is set with the old tax to date as no tax // has been added. This value is only required if the tax code should change. employeeOb.setNewTaxToDate(employeeOb.getLastTaxToDate()); } }