-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathRoom.java
More file actions
41 lines (33 loc) · 820 Bytes
/
Copy pathRoom.java
File metadata and controls
41 lines (33 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package macproint105;
public class Room {
private int roomId;
private int floor;
private Customer owner;
public Room(int roomId, int floor, Customer owner) {
this.roomId = roomId;
this.floor = floor;
this.owner = owner;
}
public int getRoomId() {
return roomId;
}
public void setRoomId(int roomId) {
this.roomId = roomId;
}
public int getFloor() {
return floor;
}
public void setFloor(int floor) {
this.floor = floor;
}
public Customer getOwner() {
return owner;
}
public void setOwner(Customer owner) {
this.owner = owner;
}
@Override
public String toString() {
return "Room{" + "roomId=" + roomId + ", floor=" + floor + ", owner=" + owner + '}';
}
}