binibiningtinamoran

Employee.java

Nov 25th, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.21 KB | None | 0 0
  1. public abstract class Employee {
  2.  
  3.     // Minimum pay rate
  4.     private static final double MIN_PAY_RATE = 12.00;
  5.  
  6.     private String employeeID;
  7.     private String firstName;
  8.     private String lastName;
  9.     protected double payRate;
  10.     protected String title;
  11.  
  12.     public Employee(String employeeID, String firstName, String lastName, double payRate) {
  13.         this.employeeID = employeeID;
  14.         this.firstName = firstName;
  15.         this.lastName = lastName;
  16.         this.payRate = payRate;
  17.     }
  18.  
  19.     public String getEmployeeID() {
  20.         return employeeID;
  21.     }
  22.  
  23.     public void setEmployeeID(String employeeID) {
  24.         this.employeeID = employeeID;
  25.     }
  26.  
  27.     public String getFirstName() {
  28.         return firstName;
  29.     }
  30.  
  31.     public void setFirstName(String firstName) {
  32.         this.firstName = firstName;
  33.     }
  34.  
  35.     public String getLastName() {
  36.         return lastName;
  37.     }
  38.  
  39.     public void setLastName(String lastName) {
  40.         this.lastName = lastName;
  41.     }
  42.  
  43.     public String getTitle() {
  44.         return title;
  45.     }
  46.  
  47.     public abstract void setTitle();
  48.  
  49.     public double getPayRate() {
  50.         return payRate;
  51.     }
  52.  
  53.     public abstract void setPayRate();
  54. }
  55.  
Add Comment
Please, Sign In to add comment