Exercise 71109 Write a class named Employee that has the following fields:
name: The name field is a String object that holds the employee's name.
idNumber: The idNumber is an int variable that holds the employee's ID number.
department: The department is a String object that holds the name of the name of the department where the employee works.
position: the position field is a String object that holds the employee's job title.
Write appropriate mutator methods that store the values in these fields and accessor methods that return the values in the field.
Once you have written the class add a main method that creates three Employee objects to hold the following data:
Name ID Number Department Position
Susan Meyers 47899 Marketing Sales Rep
Mark Jones 39119 IT Programmer
Joy Rogers 81774 Manufacturing Engineer
The program should store this in the three objects and then display the data for each employee in the format:
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-70215.pdf
Comments
Leave a comment