Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ThiThu
- {
- class GVTG : Giangvien
- {
- public int solop, luong;
- public GVTG()
- {
- solop = 0;
- luong = 0;
- }
- public GVTG(int magv, int dienthoai, string hoten, string diachi, int solop, int luong):base(magv, dienthoai, hoten, diachi)
- {
- this.solop = solop;
- this.luong = luong;
- }
- public override void Luong()
- {
- Console.WriteLine("Luong cua GVTG la: {0}", luong * solop);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement