/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package stack1325; /** * * @author jcmt */ public class HourlyEmployee extends Employee { private int employmentType; // 0 probationary, 1 regular private double hours; public HourlyEmployee(int employmentType, double hours, String name, double pay) { super(name, pay); this.employmentType = employmentType; this.hours = hours; } public double getHours() { return hours; } public void setHours(double hours) { this.hours = hours; } public int getEmploymentType() { return employmentType; } public void setEmploymentType(int employmentType) { this.employmentType = employmentType; } @Override public double getPaymentAmount() { return getHours() * getPay(); //throw new UnsupportedOperationException("Not supported yet."); } }