-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.java
More file actions
55 lines (52 loc) · 1.49 KB
/
Order.java
File metadata and controls
55 lines (52 loc) · 1.49 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
49
50
51
52
53
54
55
package Amazon;
public class Order {
private String ID ;
private double deliver_price , product_price, total_price ;
private Product [] products;
private USER customer;
public Order() {
}
public Order(String ID, double deliver_price, double product_price, double total_price, USER customer) {
this.ID = ID;
this.deliver_price = deliver_price;
this.product_price = product_price;
this.total_price = total_price;
this.customer = customer;
}
public String getID() {
return ID;
}
public void setID(String ID) {
this.ID = ID;
}
public double getDeliver_price() {
return deliver_price;
}
public void setDeliver_price(double deliver_price) {
this.deliver_price = deliver_price;
}
public double getProduct_price() {
return product_price;
}
public void setProduct_price(double product_price) {
this.product_price = product_price;
}
public double getTotal_price() {
return total_price;
}
public void setTotal_price(double total_price) {
this.total_price = total_price;
}
public Product[] getProducts() {
return products;
}
public void setProducts(Product[] products) {
this.products = products;
}
public USER getCustomer() {
return customer;
}
public void setCustomer(USER customer) {
this.customer = customer;
}
}