public class PartTimeEmployee extends HourlyWageEmployee { public double overtimeHours() { double total = 0.0; for (double hours : this.getHours()) if (hours > Employee.WORK_DAY_HOURS) total += hours - Employee.WORK_DAY_HOURS; return total; } }