Exemple #1
0
 //Phương thức
 public HocSinh(HocSinh hs)
 {
     this.mahs     = hs.mahs;
     this.hoten    = string.Copy(hs.hoten);
     this.gioitinh = string.Copy(hs.gioitinh);
     this.namsinh  = hs.namsinh;
     this.email    = string.Copy(hs.email);
     this.dtb      = hs.dtb;
     this.malop    = string.Copy(hs.malop);
 }
Exemple #2
0
 public void hienthi(HocSinh hs)
 {
     Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}", hs.mahs, hs.hoten, hs.gioitinh, hs.namsinh, hs.email, hs.dtb, hs.malop);
 }