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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 29 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply