Skip to content

Instantly share code, notes, and snippets.

@nOy39
Created February 17, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nOy39/079a4c869151ce9f101a7ff7a375a654 to your computer and use it in GitHub Desktop.
Save nOy39/079a4c869151ce9f101a7ff7a375a654 to your computer and use it in GitHub Desktop.
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