Question: Write the specification and implementation of a method named updateHours to increase an employee objects working hours. The method should take the working hours as
Write the specification and implementation of a method named updateHours to increase an employee objects working hours. The method should take the working hours as a parameter and update the hours for the employee. As a safeguard, if the working hours is less than 0.0, the method should return the Boolean value false and should not update the hours for the employee. If the working hours is greater than or equal to 0.0, the method should update the hours and return the Boolean value true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
