Please answer 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 Assuming the Employee class is fully implemented, define a Professor class in Java with the following: Instance variable(s) A Constructor
Please answer 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
Assuming the Employee class is fully implemented, define a Professor class in Java with the following:
-
Instance variable(s)
-
A Constructor
Unlock instant AI solutions
Tap the button
to generate a solution







