Question: Having trouble with this one. This is for visual studio c# chapter 9. 4. Employee Class Wirite a class named Employee that has the following
4. Employee Class Wirite 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, employee's ID number, depart- ment, and position A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name and ID number. The Depart- ment and Position properties should be assigned an empty string () A parameterless constructor that assigns empty strings () to the Name, Department, and Position properties, and 0 to the IdNumber property In an application, create three Employee objects to hold the following data: Name Susan Meyers Mark Jones Joy Rogers ID Number Department Position 47899 39119 81774 Vice President Accounting IT Manufacturing Engineer Programmer The each employee on the screen. application should store this data in the three objects and display the data for
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
