Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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