Advertisement
Guest User

Giangvien

a guest
Dec 12th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 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 Giangvien
  10. {
  11. public int magv, dienthoai;
  12. public string hoten, diachi;
  13. public Giangvien()
  14. {
  15. magv = 0;
  16. dienthoai = 0;
  17. hoten = "";
  18. diachi = "";
  19. }
  20. public Giangvien(int magv1, int dienthoai1, string hoten1, string diachi1)
  21. {
  22. this.magv = magv1;
  23. this.diachi = diachi1;
  24. this.hoten = hoten1;
  25. this.dienthoai = dienthoai1;
  26. }
  27. public virtual void Hienthi()
  28. {
  29. Console.WriteLine("-----");
  30. Console.WriteLine("Ma giao vien: {0}\nHo ten la: {1}\nSo dien thoai: {2}\nDia chi: {3}",magv,hoten,dienthoai,diachi);
  31. }
  32. public virtual void Luong()
  33. {
  34.  
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement