question archive Java program Task 1: Create a class Employee with following attributes empID, empName, status as enumeration wich has two possible values PermanantEmployee and VisitingEmployee
Subject:Computer SciencePrice:2.87 Bought7
Java program
Task 1: Create a class Employee with following attributes empID, empName, status as enumeration wich has two possible values PermanantEmployee and VisitingEmployee. Create a class Department which depName and depEmployees(of type Employee). All attributes are privates and exposed via getter and setter. Both classes have a fully parameterized constructor.
Task 2: In main class, create an Arraylist of Department. Create a static method to insertData() to add data in ArrayList( Ask user to input data in the list). Create another method deleteData() which will delete specific employee from given index. Create another method named updateData() which will update status of an employee. Create another method displayData() which will print data of departments.
Purchased 7 times