-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReservationEntry.java
More file actions
48 lines (39 loc) · 1.1 KB
/
ReservationEntry.java
File metadata and controls
48 lines (39 loc) · 1.1 KB
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
42
43
44
45
46
47
48
package beanbags;
import java.io.Serializable;
/**
* Write a description of class PriceEntry here.
*
* @authors 650020356, 650046063
* @version 1.0
*/
public class ReservationEntry implements Serializable
{
private int reservationID;
private String bagID;
private int numberReserved;
private int reservationPrice;
public ReservationEntry(int reservationID, String bagID, int reservationPrice, int numberReserved){
this.reservationID = reservationID;
this.bagID = bagID;
this.numberReserved = numberReserved;
this.reservationPrice = reservationPrice;
}
public String getBagID(){
return this.bagID;
}
public void setBagID(String newID){
this.bagID = newID;
}
public int getReservationPrice(){
return this.reservationPrice;
}
public void setReservationPrice(int newPrice){
reservationPrice = newPrice;
}
public int getReservationID(){
return this.reservationID;
}
public int getNumberReserved(){
return this.numberReserved;
}
}