+ 1
What is friend function ?? Please explain it
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.
+ 1
how can we declare friend function in class ?? explain it with syntax