Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Employee
- {
- public String EmployeeNAme;
- public int EmployeeID;
- public double Salary;
- public ArrayList emp = new ArrayList();
- }
- class EmployeeDAL : Employee
- {
- public bool add (Employee e)
- {
- emp.Add(e);
- if (emp.Contains("e") == true)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- public bool Delete(int id)
- {
- emp.RemoveAt(id);
- if (emp.Contains(id) != true)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
- public String SearchEmployee(int id)
- {
- String emp = Convert.ToString(emp[id]);
- return emp;
- }
- }
- class Program: Employee
- {
- static void Main(string[] args)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement