Checking to see if there are any C# programmers out there thatcan help me write
ID: 3617635 • Letter: C
Question
Checking to see if there are any C# programmers out there thatcan help me write the code for three constructors one constructor that accepts values as arguments and assignsthem to the appropriate field employee's name. id Number,department and position one constructor that accepts values as arguments and assignsthem to the appropriate field employee's name. id Number. Thedeprtment and position field should be assigned an empty string (""), a default constructor that assigns empty strings ("") to the employee's name. id Number, department andposition fields, and 0 to the idNumber field. I am seriously looking for a C# tutor. I am using VS2008 Checking to see if there are any C# programmers out there thatcan help me write the code for three constructors one constructor that accepts values as arguments and assignsthem to the appropriate field employee's name. id Number,department and position one constructor that accepts values as arguments and assignsthem to the appropriate field employee's name. id Number. Thedeprtment and position field should be assigned an empty string (""), a default constructor that assigns empty strings ("") to the employee's name. id Number, department andposition fields, and 0 to the idNumber field. I am seriously looking for a C# tutor. I am using VS2008Explanation / Answer
class worker { private:
String empname; int eid; String department; String position;
//default constructor worker() { empname=" "; eid=0; department=" "; position=" "; }
//constructor that assign name and id number, department,position
worker(String en, int id, String d, String p) { empname=en; eid=id; department=d; position=p; }
worker(String en, int id) { empname=en; eid=id; department=" "; position=" "; }
class worker { private:
String empname; int eid; String department; String position;
//default constructor worker() { empname=" "; eid=0; department=" "; position=" "; }
//constructor that assign name and id number, department,position
worker(String en, int id, String d, String p) { empname=en; eid=id; department=d; position=p; }
worker(String en, int id) { empname=en; eid=id; department=" "; position=" "; }
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.