pls help me with this problem......its for my exam for finals...pls help me....
here are the instructions:
Create a Class of the ff:
(focus on payroll)
1. EmployeePay (parent)
define: attribute: salary(net), gross, rate, no of hours worked, tax=20%
method: setters/getters, reset()-set number of hours work to 0
formula: gross=rate*no. of hrs worked
2. BetterEmployeePay (child)
define: attribute: normal, overtime rate
method: setters/getters, override the method for salary
formula: overtime pay=(no. of hours worked - normal) * overtime rate
gross= (rate* no of hours worked)+ overtime pay
3. create a tester class for the child class with 1 object displaying the rate, no. of hours worked, excess hours (optional), gross, overtime pay(optional) and salary
Please help me with this.....ty..
Edited 6 Years Ago by peter_budo: Please use colour highlight for important section not for whole post!