Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- Room room = new Room(320, 200);
- Receptionist receptionist = new Receptionist("Iliqn", "night shift");
- System.out.println();
- System.out.println("The sum of the price from all nights is: " + room.calculateTotalCost(5));
- System.out.println("The room number is: " + room.getRoomNumber() + "\nThe price per night is: " + room.getPricePerNight());
- System.out.println();
- room.setRoomNumber(321);
- room.setPricePerNight(180);
- System.out.println("The new room number is: " + room.getRoomNumber());
- System.out.println("The new price per night is: " + room.getPricePerNight());
- System.out.println();
- System.out.println("The new sum of the price from all nights is: " + room.calculateTotalCost(5));
- System.out.println();
- System.out.println("The name of the receptionist is: " + receptionist.getName() + "\nHis shift is: " + receptionist.getShift());
- System.out.println();
- receptionist.setName("Ilko");
- receptionist.setShift("day shift");
- System.out.println("The new name of the receptionist is: " + receptionist.getName());
- System.out.println("His new shift is: " + receptionist.getShift());
- System.out.println(receptionist.checkIn());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement