subject
Computers and Technology, 07.03.2020 00:11 Soloaa

Use Java to 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 variable that holds the employee's ID number department; department - The department field references a String object that holds the name of the department where the employee works; position - The position field references a String object that holds the employee's job title.

The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate fields employee's name, employee's ID number, department, and position. A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee's name and ID number. The department, and position fields should be assigned an empty string (" "). A no-arg constructor that assigns empty strings (" ") to the name, department, and position fields, and 0 to the idNumber field.

Write appropriate mutator methods that store values in these fields and accessor methods that return the values in these fields. Once you have written the class, write a separate program the creates three Employee objects to hold the following data: Name ID Number Department Position Susan Meyers 47899 Accounting Vice President Mark Jones 39119 IT Programmer Joy Rogers 81774 Manufacturing Engineer.

The program should store this data in three objects and then display the data for each employee on the screen.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
You know the right answer?
Use Java to write a class named Employee that has the following fields: name - The name field refere...
Questions
question
Mathematics, 30.11.2019 02:31
Questions on the website: 13722363