Question: This needs to be in java form T Write a class named Employee that has the following data fields and constructors A private String data

This needs to be in java formThis needs to be in java formT Write a class named Employeethat has the following data fields and constructors A private String dataT

Write a class named Employee that has the following data fields and constructors A private String data field named name A private String data field named idNumber A private String data field named department A no-arg constructor A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee's name, employee's ID number, and department. Also write appropriate mutator methods that stores values in these fields and accessor methods that return the values in these fields. Write another class named EmployeeTest, in main method, ask the user to enter the employee's name, ID number, and department, create an instance of the Employee class, assign the data to its attributes, and display the information, notice that you have to call the accessor methods (getters in the Employee class) to get the info and display using println or printf. (Check the sample output below) You can name your program Employeejava and EmployeeTestjava

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!