Advertisement
Guest User

GVTG

a guest
Dec 12th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ThiThu
  8. {
  9. class GVTG : Giangvien
  10. {
  11. public int solop, luong;
  12. public GVTG()
  13. {
  14. solop = 0;
  15. luong = 0;
  16. }
  17. public GVTG(int magv, int dienthoai, string hoten, string diachi, int solop, int luong):base(magv, dienthoai, hoten, diachi)
  18. {
  19. this.solop = solop;
  20. this.luong = luong;
  21. }
  22. public override void Luong()
  23. {
  24. Console.WriteLine("Luong cua GVTG la: {0}", luong * solop);
  25. }
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement