Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. package Homework5;
  2.  
  3. public abstract class Employee {
  4. public int employeeNum;
  5. public String first;
  6. public String last;
  7. public double payRate;
  8. public String jobTitle;
  9.  
  10. public Employee (int employeeNum, String first, String last, double payRate, String jobTitle)
  11. {
  12.  
  13. }
  14.  
  15.  
  16. public void setEmpNum(int e) {
  17. employeeNum = e;
  18. }
  19.  
  20. public void setFirst(String f) {
  21. first = f;
  22. }
  23.  
  24. public void setLast(String l) {
  25. last = l;
  26. }
  27.  
  28. public abstract void setPay(double p);
  29.  
  30. public abstract void setTitle();
  31.  
  32. public int getEmpNum() {
  33. return employeeNum;
  34. }
  35. public String getFirst() {
  36. return first;
  37. }
  38. public String getLast() {
  39. return last;
  40. }
  41. public double getPay() {
  42. return payRate;
  43. }
  44. public String getTitle() {
  45. return jobTitle;
  46. }
  47.  
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement