Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. public class Secretary extends Employee
  2. {
  3. /**
  4. * Data Field
  5. */
  6. private String officeLocation;
  7. private String status;
  8.  
  9. /**
  10. * Constructor(default)
  11. */
  12. public Secretary(){}
  13.  
  14. /**
  15. * Constructor(String, String, String, String, String, String, int, String, String)
  16. * @param first
  17. * @param last
  18. * @param number
  19. * @param address
  20. * @param id
  21. * @param title
  22. * @param salary
  23. * @param officeLocation
  24. * @param status
  25. */
  26. public Secretary(String first, String last, String number, String address, String id, String title, int salary, String officeLocation, String status)
  27. {
  28. super(first, last, number, address, id, title, salary);
  29. setOfficeLocation(officeLocation);
  30. setStatus(status);
  31. }
  32.  
  33. /**
  34. * setOfficeLocation*String)
  35. * @param officeLocation
  36. */
  37. private void setOfficeLocation(String officeLocation)
  38. {this.officeLocation = officeLocation;}
  39.  
  40. /**
  41. * setStatus(String)
  42. * @param status
  43. */
  44. private void setStatus(String status)
  45. {this.status = status;}
  46.  
  47. /**
  48. * getOfficeLocation()
  49. * @return String
  50. */
  51. public String getOfficeLocation(){return officeLocation;}
  52.  
  53. /**
  54. * getStatus()
  55. * @return String
  56. */
  57. public String getStatus(){return status;}
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement