Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Secretary extends Employee
- {
- /**
- * Data Field
- */
- private String officeLocation;
- private String status;
- /**
- * Constructor(default)
- */
- public Secretary(){}
- /**
- * Constructor(String, String, String, String, String, String, int, String, String)
- * @param first
- * @param last
- * @param number
- * @param address
- * @param id
- * @param title
- * @param salary
- * @param officeLocation
- * @param status
- */
- public Secretary(String first, String last, String number, String address, String id, String title, int salary, String officeLocation, String status)
- {
- super(first, last, number, address, id, title, salary);
- setOfficeLocation(officeLocation);
- setStatus(status);
- }
- /**
- * setOfficeLocation*String)
- * @param officeLocation
- */
- private void setOfficeLocation(String officeLocation)
- {this.officeLocation = officeLocation;}
- /**
- * setStatus(String)
- * @param status
- */
- private void setStatus(String status)
- {this.status = status;}
- /**
- * getOfficeLocation()
- * @return String
- */
- public String getOfficeLocation(){return officeLocation;}
- /**
- * getStatus()
- * @return String
- */
- public String getStatus(){return status;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement