Friend functions increase Data vulnerability what is your-00367

Online Quiz 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:
  1. Data vulnerability
  2. Programming bugs
  3. Tough debugging

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background