-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrderLine.java
48 lines (35 loc) · 939 Bytes
/
OrderLine.java
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
public class OrderLine {
private int productID;
private int orderID;
private double quantity;
private double cost;
public double getQuantity() {
return quantity;
}
public void setQuantity(double quantity) {
this.quantity = quantity;
}
public double getCost() {
return cost;
}
public void setCost(double cost) {
this.cost = cost;
}
public int getOrderID() {
return orderID;
}
public void setOrderID(int orderID) {
this.orderID = orderID;
}
public int getProductID() {
return productID;
}
public void setProductID(int productID) {
this.productID = productID;
}
public String toString() {
String result = "ProductID: " + this.productID + "\tOrderID: " + this.orderID + "\tQuantity: "
+ this.quantity + "\tCost: " + this.cost;
return result;
}
}