Friend functions increase Data vulnerability what is your-00367
This subjective question is related to the book/course vu cs201 Introduction to Programming. It can also be found in vu cs201 Mid Term Solved Past Paper No. 6.
Question 1: Friend functions increase "Data vulnerability", what is your opinion?
Answer:
Friend functions minimize encapsulation as we can access private data of any class using friend functions, This can result in:- Data vulnerability
- Programming bugs
- Tough debugging