Created
February 17, 2021 15:12
-
-
Save nOy39/079a4c869151ce9f101a7ff7a375a654 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
public class Room { | |
Floor floor; | |
RoomType roomType; | |
int roomNumber; | |
String guest = "EMPTY"; | |
boolean isSmoking; | |
public Room(Floor floor, RoomType roomType, int roomNumber, boolean isSmoking) { | |
this.floor = floor; | |
this.roomType = roomType; | |
this.roomNumber = roomNumber; | |
this.isSmoking = isSmoking; | |
} | |
public Floor getFloor() { | |
return floor; | |
} | |
public void setFloor(Floor floor) { | |
this.floor = floor; | |
} | |
public RoomType getRoomType() { | |
return roomType; | |
} | |
public void setRoomType(RoomType roomType) { | |
this.roomType = roomType; | |
} | |
public int getRoomNumber() { | |
return roomNumber; | |
} | |
public void setRoomNumber(int roomNumber) { | |
this.roomNumber = roomNumber; | |
} | |
public String getGuest() { | |
return guest; | |
} | |
public void setGuest(String guest) { | |
this.guest = guest; | |
} | |
public boolean isSmoking() { | |
return isSmoking; | |
} | |
public void setSmoking(boolean smoking) { | |
isSmoking = smoking; | |
} | |
public Room() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment