Question: this is in java. 2. Employee Class. Based on Gaddis Programming Challenges 6.1. (5 points) Write a class named Employee that has the following fields:
this is in java.

2. Employee Class. Based on Gaddis Programming Challenges 6.1. (5 points) Write a class named Employee that has the following fields: name. The name field references a String object that holds the employee's name idNumber The idNumber is an int that holds the employee's ID number department. The department field is a String that holds the name of the department where the employee works. . position. The position field is a String that holds the employee's job title Access the fields using variableName.fieldName. For example: Employee el new Emplovee): e1.name Susan Meyers" e1.idNumber = 47899; // and similar for department and position Once you have written the class, write a separate (main) program that creates three Employee objects to hold the following data: Name Susan Meyers Mark Jones Joy Rogers ID Number Department 47899 39119 81774 Accounting IT Manufacturing Position Vice President Programmer Engineer The program should store this data in the three objects and then display the data for each employee on the screen Please remember to put your name and date of program completion at the top of both class files
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
