-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProduct.java
More file actions
50 lines (39 loc) · 1004 Bytes
/
Product.java
File metadata and controls
50 lines (39 loc) · 1004 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
49
50
package order;
import java.io.Serializable;
public class Product implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String nameProduct;
private String nameSeller;
private int price;
public Product(String nameProduct, String nameSeller, int price) {
super();
this.nameProduct = nameProduct;
this.nameSeller = nameSeller;
this.price = price;
}
public String getNameProduct() {
return nameProduct;
}
public void setNameProduct(String nameProduct) {
this.nameProduct = nameProduct;
}
public String getNameSeller() {
return nameSeller;
}
public void setNameSeller(String nameSeller) {
this.nameSeller = nameSeller;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
@Override
public String toString() {
return "Product [nameProduct=" + nameProduct + ", nameSeller=" + nameSeller + ", price=" + price + "]";
}
}