Question: In Visual Studio, create a new Windows Forms Application. Create a class named Employee (in its own file) that has the following properties: Name the
In Visual Studio, create a new Windows Forms Application. Create a class named Employee (in its own file) that has the following properties:
- Name the Name property holds the employees name.
- IdNumber the IdNumber property holds the employees ID number.
- Department The Department property holds the name of the department in which the employee works.
- Position the Position property holds the employees 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: employees name, employees ID number, department, and position.
- A constructor that accepts the following values as arguments and assigns them to the appropriate properties: employees name and ID number. The Departmentand 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 your application, create 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 application should store this data in the three objects and display the data for each employee on the screen.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
