Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Receptionist {
- private String name;
- private String shift;
- public Receptionist(String name, String shift) {
- this.name = name;
- this.shift = shift;
- }
- public String checkIn() {
- return name + " has registered a new guest.";
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getShift() {
- return shift;
- }
- public void setShift(String shift) {
- this.shift = shift;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement