Question: A C + + class named staff is going to be created. Check the UML diagram given below and read follow the instructions and write

A C++ class named "staff" is going to be created. Check the UML diagram given below and read follow the instructions and write the code accordingly.staffsNo:int sName: string salary: doublestaff()//appropriate default values should be assigned to each data memberstaff(int,string, double)staff(const staff&)~staff()getsNo(): intgetsName(): string getsalary ):doublesetsNo ( int): void setsName string) : void setsalary (double): voidannualSalary ):double //Calculates the annual salary (salary*12) and returns printStaffinfo): void

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!