Question: 1-2. Define and implement a class named person that has the following constructors and behaviours: person(string mylane, int Salary): 11 a nane and salary must

 1-2. Define and implement a class named person that has the

1-2. Define and implement a class named person that has the following constructors and behaviours: person(string mylane, int Salary): 11 a nane and salary must be provided to create a person void setNane(string nyane); change the person's name string getiane ) void setsalary(int sySalary)change the person's int getsalary) Your main program should create four person objects and change and display their details, Your main program should demonstrate that the name and salary information is changed. This class will also be used in problem 2-2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!