-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProduct.java
More file actions
52 lines (42 loc) · 1.23 KB
/
Copy pathProduct.java
File metadata and controls
52 lines (42 loc) · 1.23 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
public abstract class Product {
private String productID;
private String productName;
private int numberofavailableitems;
private double price;
public Product(String productID, String productName, int numberofavailableitems, double price) {
this.productID = productID;
this.productName = productName;
this.numberofavailableitems = numberofavailableitems;
this.price = price;
}
public String getProductID() {
return this.productID;
}
public void setProductID(String productID) {
this.productID = productID;
}
public String getProductName() {
return this.productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public int getNumberofavailableitems() {
return this.numberofavailableitems;
}
public void setNumberofavailableitems(int numberofavailableitems) {
this.numberofavailableitems = numberofavailableitems;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public String getCategory(){
return "";
}
public String getInfo(){
return "";
}
}