-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRentalParameters.java
More file actions
48 lines (41 loc) · 1022 Bytes
/
RentalParameters.java
File metadata and controls
48 lines (41 loc) · 1022 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
42
43
44
45
46
47
48
/**
* @author Chan Tran
* @version 09/13/2017
*
* This class is used for setting up the rental parameters to be calculated. Rental parameters include the rental date,
* number of rented days, and the discount given.
*/
public class RentalParameters {
private String rentDate;
private int rentDays;
private int discount;
public RentalParameters()
{
this.rentDate = "";
this.rentDays = 0;
this.discount = 0;
}
public RentalParameters(String rentDate, int rentDays, int discount) {
this.rentDate = rentDate;
this.rentDays = rentDays;
this.discount = discount;
}
public String getRentDate() {
return rentDate;
}
public void setRentDate(String rentDate) {
this.rentDate = rentDate;
}
public int getRentDays() {
return rentDays;
}
public void setRentDays(int rentDays) {
this.rentDays = rentDays;
}
public int getDiscount() {
return discount;
}
public void setDiscount(int discount) {
this.discount = discount;
}
}