68 382
Assignments Done
98,5%
Successfully Done
In November 2018

Answer to Question #70215 in Java | JSP | JSF for JOHNSON ADDAI

Question #70215
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:


Expert's answer

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions