Inheritance: IEmployee
コード例 #1
0
        /// <summary>
        /// Creates sales and other white collar employees
        /// </summary>
        /// <param name="name"></param>
        /// <param name="phoneNo"></param>
        /// <param name="address"></param>
        /// <param name="hourlyWage"></param>
        /// <param name="department">Department enum</param>
        /// <param name="marity">Marital status enum</param>
        /// <returns></returns>
        public static WhiteCollar CreateEmployee(string name,
           string phoneNo, string address, double hourlyWage, string personalID,
            EmployeeStatuses.Department department,
           EmployeeStatuses.MaritalStatus marity)
        {
            WhiteCollar employee = new WhiteCollar(name,phoneNo,address,hourlyWage,personalID,department,marity);

            return employee;
        }
コード例 #2
0
 /// <summary>
 /// saves white collar Employee to DB...
 /// </summary>
 /// <param name="employee"></param>
 public static void SaveToDB(WhiteCollar employee)
 {
     throw new NotImplementedException();
 }