Question
Please use Java 2. Write a class named Employee that has the following properties. Name: The Name property holds the employee's name. IdNumber: The IdNumber
Please use Java 2. Write a class named Employee that has the following properties.
Name: The Name property holds the employee's name.
IdNumber: The IdNumber property holds the employee's ID number.
Department: The Department property holds the name of the department in which the employee works.
Position: The Position property holds the employee's job title.
The class should have the following overloaded constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's Name, IdNumber, Departmentand Position. A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's Name and IdNumber. The Departmentand Position properties should be assigned an empty string. A parameter less constructor that assigns empty string to Name, Department and Position properties, and 0 to IdNumber.
Create three employee objects to hold the following information: Name Susan Meyers Mark Jones Joy Rogers id Number 47899 39119 81774 Department Accouting Position Vice President Programmer Engineer ManufacturingStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started