Exemple #1
0
 public Employee(int _ssn, string _name, int _age, decimal _salary, Department _dept, HireDate _hdate)
 {
     ssn    = _ssn;
     name   = _name;
     age    = _age;
     salary = _salary;
     dept   = _dept;
     hdate  = _hdate;
 }
Exemple #2
0
 public Employee()
 {
     ssn    = 1;
     name   = "Amal";
     age    = 25;
     salary = 10000;
     dept   = new Department(10, "CS");
     hdate  = new HireDate(10, 10, 2010);
 }