Answer this JAVA OOP question below: An Employee has a name, employee ID, and department. An Employee object must be created with all its attributes. The UML diagram is provided below: - name: String - employeeId: String - department: String + Employee(name: String, employeeId: String, department: String) + setName(name: String): void + setEmployeeId(employeeId: String): void + setDepartment(department: String): void + getName(): String + getEmployeeId(): String + getDepartment(): String + toString(): String A faculty is an Employee with an additional field String field: rank public class TestImplementation{ public static void main(String[] args){ Employee[] allEmployee = new Employee[100]; // create an employee object with name Tom Evan, employee ID 001 and department IST and store it in allEmployee // create a faculty object with name Adam Scott, employee ID 002, department IST and rank Professor and store it in allEmployee } }
Answer this JAVA OOP question below:
An Employee has a name, employee ID, and department. An Employee object must be created with all its attributes. The UML diagram is provided below:
- name: String
- employeeId: String
- department: String
+ Employee(name: String, employeeId: String, department: String)
+ setName(name: String): void
+ setEmployeeId(employeeId: String): void
+ setDepartment(department: String): void
+ getName(): String
+ getEmployeeId(): String
+ getDepartment(): String
+ toString(): String
A faculty is an Employee with an additional field String field: rank
public class TestImplementation{
public static void main(String[] args){
Employee[] allEmployee = new Employee[100];
// create an employee object with name Tom Evan, employee ID 001 and department IST and store it in allEmployee
// create a faculty object with name Adam Scott, employee ID 002, department IST and rank Professor and store it in allEmployee } }
Unlock instant AI solutions
Tap the button
to generate a solution







