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 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
Get step-by-step solutions from verified subject matter experts
