Create an Employee class with following properties EmployeeName as string EmployeeID as int Salary as double Create anot
Posted: Thu Jul 14, 2022 2:11 pm
Please solve and explain using C# implementing SortedListand Generic List.
Create an Employee class with following properties EmployeeName as string EmployeeID as int Salary as double Create another class called EmployeeDAL which has the following methods. a. public bool AddEmployee(Employee e) b. public bool DeleteEmployee(int id) c. public string SearchEmployee (int id) d. public Employee[] GetAllEmployeesistAll() Use an Arraylist to store the employees Write a test program to test all the functionalities.
Implement the hands-on 1 using Sortedlist being EmployeeID as a key Modify hands-on 1 with Generic List
Create an Employee class with following properties EmployeeName as string EmployeeID as int Salary as double Create another class called EmployeeDAL which has the following methods. a. public bool AddEmployee(Employee e) b. public bool DeleteEmployee(int id) c. public string SearchEmployee (int id) d. public Employee[] GetAllEmployeesistAll() Use an Arraylist to store the employees Write a test program to test all the functionalities.
Implement the hands-on 1 using Sortedlist being EmployeeID as a key Modify hands-on 1 with Generic List