-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayment.java
More file actions
40 lines (31 loc) · 846 Bytes
/
Copy pathPayment.java
File metadata and controls
40 lines (31 loc) · 846 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
package pgrentalsystem;
import java.util.Date;
public class Payment {
private Booking booking;
private double amount;
private Date paymentDate;
public Payment(Booking booking, double amount) {
this.booking = booking;
this.amount = amount;
this.paymentDate = new Date();
}
// Getters and Setters
public Booking getBooking() {
return booking;
}
public void setBooking(Booking booking) {
this.booking = booking;
}
public double getAmount() {
return amount;
}
public void setAmount(double amount) {
this.amount = amount;
}
public Date getPaymentDate() {
return paymentDate;
}
public void setPaymentDate(Date paymentDate) {
this.paymentDate = paymentDate;
}
}