subject

Problem: employee class 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, employee's id number, department, and position. a constructor that accepts the following values as arguments and assigns them to the appropriate properties: employee's name, employee's id number, department, and position properties should be assigned an empty string ("") a parameter-less constructor that assigns empty strings ("") to the name, department, and position properties, and 0 to the idnumber property. computer programming language- c# visual basic formsmy code: using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. linq; using system. text; using system. threading. tasks; using system. windows. forms; namespace employee_class{public partial class form1 : form{const int number = 3; employee[] employeeinfo = new employee[number]; public form1(){initializecomponent(); }class employee{const int number = 3; employee[] employeeinfo = new employee[number]; public string _name; public string _idnumber; public string _department; public string _position; public employee(string name, string idnumber, string department, string position){_name = name; _idnumber = idnumber; _department = department; _position = position; }public string name { get { return _name; } set { _name = value; } }public string idnumber {get { return _idnumber; } set { _idnumber = value; }}public string department{get { return _department; }set { _department = value; }}public string position{get { return _position; }set { _position = value; }}}private void form1_load(object sender, eventargs e){employeeinfo[0] = new employee("susan meyers", "47899", "accounting", "vice president"); employeeinfo[1] = new employee("mark jones", "39119", "it", "programmer"); employeeinfo[2] = new employee("joy rogers", "81774", "manufacturing", "enginner"); }private void showbutton_click(object sender, eventargs e){employeeinfoshowlabel. text = employeeinfo[0]._name; }private void exitbutton_click(object sender, eventargs e){this. close(); }}}my issue: everything seems correct, but nothing seems to be printing out. i am not sure what i did incorrectly. is the code correct? it needs to print like thisname id number departmentmeyers 47899 accounting vice presidentmark jones 39119 it programmerjoy rogers 81774 manufacturing engineer

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Felicia wants to become a head surgeon by december 2013. she designs the career milestones that she would need to complete her goal. by june 2013, she was not licensed. which best describes what she should do?
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
If a client wants to make minor edits, what should he/she use?
Answers: 3
question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
You know the right answer?
Problem: employee class write a class named employee that has the following properties: name--the...
Questions
question
Mathematics, 16.04.2020 14:52
question
History, 16.04.2020 14:52
question
Spanish, 16.04.2020 14:53
question
Mathematics, 16.04.2020 14:53
question
World Languages, 16.04.2020 14:53