Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class HocVienTHUD extends HocVien{
  4.  
  5.     final int hocPhi1TinChi= 95000;
  6.     int tienHocPhi;
  7.  
  8.     public int getTienHocPhi() {
  9.         return tienHocPhi;
  10.     }
  11.  
  12.     public void setTienHocPhi(int tienHocPhi) {
  13.         this.tienHocPhi = hocPhi1TinChi*getTongSoTinChi();
  14.     }
  15.  
  16.     @Override
  17.     public void nhapThongTin(){
  18.  
  19.         super.nhapThongTin();
  20.  
  21.  
  22.     }
  23.     @Override
  24.     public void xuatThongTin(){
  25.         super.xuatThongTin();
  26.         //     super.xuatThongTin();
  27.         System.out.println("_"+"Hoc phi:"+getTienHocPhi());
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement