Advertisement
Vladkoheca

Receptionist.java

Jan 10th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | Source Code | 0 0
  1. public class Receptionist {
  2.     private String name;
  3.     private String shift;
  4.  
  5.     public Receptionist(String name, String shift) {
  6.         this.name = name;
  7.         this.shift = shift;
  8.     }
  9.  
  10.     public String checkIn() {
  11.         return name + " has registered a new guest.";
  12.     }
  13.     public String getName() {
  14.         return name;
  15.     }
  16.     public void setName(String name) {
  17.         this.name = name;
  18.     }
  19.  
  20.     public String getShift() {
  21.         return shift;
  22.     }
  23.     public void setShift(String shift) {
  24.         this.shift = shift;
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement