-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSach.java
More file actions
35 lines (28 loc) · 796 Bytes
/
Sach.java
File metadata and controls
35 lines (28 loc) · 796 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
package tuan.product;
public class Sach extends SanPham{
private String tacGia;
private int soTrang;
public Sach(String ten, int id, String theLoai, int nam, double giaMua, double giaBan, int soLuong, String tacGia, int soTrang){
super.setTen(ten);
super.setId(id);
super.setTheLoai(theLoai);
super.setNam(nam);
super.setGiaMua(giaMua);
super.setGiaBan(giaBan);
super.setSoLuong(soLuong);
this.tacGia = tacGia;
this.soTrang = soTrang;
}
public void setTacGia(String tacGia) {
this.tacGia = tacGia;
}
public void setSoTrang(int soTrang) {
this.soTrang = soTrang;
}
public String getTacGia(){
return this.tacGia;
}
public int getSoTrang(){
return this.soTrang;
}
}