Question: Write a class named Employee that has the following properties. Name: The Name property MA 0 4 holds the employee's name. IdNumber: The IdNumber property
"Write a class named Employee that has the following properties. Name: The Name property MA 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 acce the following values as arguments and assigns them to the appropriate properties: employee's Name, IdNumber, Departmentand Position. A constructor that acce 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 to IdNumber.
Create three employee objects to hold the following information: Name Susan Meyers Jones Joy Rogers id Number Department Accouting IT Manufacturing Position Vice President Programmer Engineer"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
