Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

a. Draw a UML diagram of the class. Be sure to include notation showing each acc

ID: 3795534 • Letter: A

Question

a. Draw a UML diagram of the class. Be sure to include notation showing each access specification and data type of each field and each method. Also include notation showing the data type of the method parameters and the method return

b. Write the Java code for the above data type class Employee_LastName

1. Question 1 A class named Employee LastName, which should have the following data members (attributes): fullName: The name field is a String object that holds the employee's name employeeld: The idNumber filed is an int variable that holds the employee's ID number department The department field is a String object that holds the name of the department where the employee works title The field is a String object that holds the employee's job tittle The Employee class should also have the following public mutator methods: o setFullName: method stores a value in the name field o setEmployeeld: method stores a value in the idNumber field o setDepartment: method stores a value in the setDepartment field o setTitle: method stores a value in the setPosition field

Explanation / Answer

The java code for the class Employee_LastName is :

class Employee_LastName

{

String fullName;

int employeeId;

String department;

String title;

void setFullName(String fullName)

{

this.fullName=fullName;

}

void setEmployeeId(int employeeId)

{

this.employeeId=employeeId;

}

void setDepartment(String Department)

{

this.Department=Department;

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote