Page 1 of 1

Q6: Write OOP to represent two workers using friend function. Create a class called worker which contains name, salary.

Posted: Sat May 14, 2022 7:34 pm
by answerhappygod
Q6 Write Oop To Represent Two Workers Using Friend Function Create A Class Called Worker Which Contains Name Salary 1
Q6 Write Oop To Represent Two Workers Using Friend Function Create A Class Called Worker Which Contains Name Salary 1 (108.88 KiB) Viewed 30 times
Q6: Write OOP to represent two workers using friend function. Create a class called worker which contains name, salary. A class worker contains constructor to set the values of all data members for each worker and a friend function bonus() to add 100 on the salary of each worker.