+ 1

What is friend function ?? Please explain it

16th Sep 2017, 9:20 AM
Sourabh Agarwal
Sourabh Agarwal - avatar
3 Respostas
+ 2
non member functions cannot use private or protected data members of a class, but these functions when defiNed as friend in class, privated and protected data members can be accesed.
16th Sep 2017, 9:37 AM
Amit Dubey
Amit Dubey - avatar
+ 1
how can we declare friend function in class ?? explain it with syntax
16th Sep 2017, 4:43 PM
Sourabh Agarwal
Sourabh Agarwal - avatar