1. Engineering
  2. Computer Science
  3. using c create an employee class that includes the following...

Question: using c create an employee class that includes the following...

Question details

Using C#, create an Employee class that includes the following variable:

private string fullname;

private string address;

private string city;

private string state;

private string zip;

private double hours;

Create a constructor and properties for each instance variable. Create a form to allow an end user to enter data into the Employee object. Override the ToString() method to show the values stored in the object. Create a submit button to construct the Employee object with the form field data. Ensure that the hours textbox accepts only Double values. When the user clicks the Submit button, the program should display a Message Box with the output of the ToString() method.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution