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
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.