0% found this document useful (0 votes)
10 views1 page

Nhan Vien Java

Uploaded by

ty123erqw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Nhan Vien Java

Uploaded by

ty123erqw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

public abstract class NhanVien {

String maNV, hoTen, diaChi;


double luongCB;

public NhanVien() {
}

public NhanVien(String maNV, String hoTen, String diaChi, double luongCB) {


[Link] = maNV;
[Link] = hoTen;
[Link] = diaChi;
[Link] = luongCB;
}

public String getMaNV() {


return maNV;
}

public void setMaNV(String maNV) {


[Link] = maNV;
}

public String getHoTen() {


return hoTen;
}

public void setHoTen(String hoTen) {


[Link] = hoTen;
}

public String getDiaChi() {


return diaChi;
}

public void setDiaChi(String diaChi) {


[Link] = diaChi;
}

public double getLuongCB() {


return luongCB;
}

public void setLuongCB(double luongCB) {


[Link] = luongCB;
}

public abstract double tinhLuong();

@Override
public String toString() {
return maNV + "\t" + hoTen + "\t" + diaChi + "\t" + luongCB + "\t" +
tinhLuong();
}
}

You might also like