Object Oriented Programming Concepts

Which type of function is not a member of a class, but can access its private members?

کس قسم کا فنکشن کلاس کا ممبر نہیں ہے، لیکن اس کے پرائیویٹ ممبرز تک رسائی حاصل کر سکتا ہے؟
Answer: friend
Explanation

A friend function can access the private and protected data of a class.


This question appeared in Past Papers (2 times)
Computer Operator Past Papers (1 times)
This question appeared in Subjects (1 times)

Install this app on your device for quick access right from your home screen.