+ 1
What is the use of friend function?
in c++
12 Réponses
+ 2
tq frnd
+ 9
2014
+ 8
tamilnadu,sathyamangalam
+ 6
yes
+ 6
y boss
+ 6
premmaran
+ 6
😊s bro
+ 5
A friend function in C++ helps us to access private members of class.
+ 3
using friend function u can access the private and protected members of a class ....
we need to use friend keyword before a member function.
example
~~~~~~
friend int add();
note: it is not a member of a class
+ 2
2
+ 2
👍
+ 1
👍