-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSanPham.java
More file actions
69 lines (53 loc) · 1.17 KB
/
SanPham.java
File metadata and controls
69 lines (53 loc) · 1.17 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package tuan.product;
import java.io.Serializable;
public class SanPham implements Serializable{
private String ten;
private int id;
private String theLoai;
private int nam;
private double giaMua;
private double giaBan;
private int soLuong;
public String getTen(){
return this.ten;
}
public int getId(){
return this.id;
}
public String getTheLoai(){
return this.theLoai;
}
public int getNam(){
return this.nam;
}
public void setTen(String ten) {
this.ten = ten;
}
public void setId(int id) {
this.id = id;
}
public void setTheLoai(String theLoai) {
this.theLoai = theLoai;
}
public void setNam(int nam) {
this.nam = nam;
}
public void setGiaMua(double giaMua) {
this.giaMua = giaMua;
}
public void setGiaBan(double giaBan) {
this.giaBan = giaBan;
}
public void setSoLuong(int soLuong) {
this.soLuong = soLuong;
}
public double getGiaMua(){
return this.giaMua;
}
public double getGiaBan(){
return this.giaBan;
}
public int getSoLuong(){
return this.soLuong;
}
}