public Employee(string empName, int empAge, int empId, float currPay, string ssn, EmployeePayTypeEnum payType) { Name = empName; Age = empAge; Id = empId; Pay = currPay; SocialSecurityNumber = ssn; PayType = payType; }
public Employee(string name, int age, int id, float pay, string empSsn, EmployeePayTypeEnum payType) { Name = name; Id = id; Age = age; Pay = pay; SocialSecurityNumber = empSsn; PayType = payType; }
//public Employee(string name, int age, int id, float pay) //{ // _empName = name; // _empId = id; // _empAge = age; // _currPay = pay; //} public Employee(string name, int age, int id, float pay, string empSsn, EmployeePayTypeEnum payType) { Name = name; Id = id; Age = age; Pay = pay; //With read only, this format must be used //_empSSN = empSsn; //With private set and public get, this format can be used SocialSecurityNumber = empSsn; PayType = payType; }