Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class HocVienTHUD extends HocVien{
- final int hocPhi1TinChi= 95000;
- int tienHocPhi;
- public int getTienHocPhi() {
- return tienHocPhi;
- }
- public void setTienHocPhi(int tienHocPhi) {
- this.tienHocPhi = hocPhi1TinChi*getTongSoTinChi();
- }
- @Override
- public void nhapThongTin(){
- super.nhapThongTin();
- }
- @Override
- public void xuatThongTin(){
- super.xuatThongTin();
- // super.xuatThongTin();
- System.out.println("_"+"Hoc phi:"+getTienHocPhi());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement