public Sach(String tenTacGia, int soTrang, String maTaiLieu, String tieuDe, String tenNXB, int soBanPhatHanh) {
public class Bao extends TaiLieu{
private Date ngayPhatHanh;
public Bao() {
}
public Bao(Date ngayPhatHanh, String maTaiLieu, String tieuDe, String tenNXB, int soBanPhatHanh) {
super(maTaiLieu, tieuDe, tenNXB, soBanPhatHanh);
this.ngayPhatHanh = ngayPhatHanh;
}
public Date getNgayPhatHanh() {
return ngayPhatHanh;
}
public void setNgayPhatHanh(Date ngayPhatHanh) {
this.ngayPhatHanh = ngayPhatHanh;
}
}
public class TapChi extends TaiLieu{
private String soPhatHanh, thangNamPhatHanh;
public TapChi() {
}
public TapChi(String soPhatHanh, String thangNamPhatHanh, String maTaiLieu, String tieuDe, String tenNXB, int soBanPhatHanh) {
super(maTaiLieu, tieuDe, tenNXB, soBanPhatHanh);
this.soPhatHanh = soPhatHanh;
this.thangNamPhatHanh = thangNamPhatHanh;
}
public String getSoPhatHanh() {
return soPhatHanh;
}
public void setSoPhatHanh(String soPhatHanh) {
this.soPhatHanh = soPhatHanh;
}
public String getThangNamPhatHanh() {
return thangNamPhatHanh;
}
public void setThangNamPhatHanh(String thangNamPhatHanh) {
this.thangNamPhatHanh = thangNamPhatHanh;
}
}