+ 3

Friend function is not the member of class or not.

c++ in oop

12th Mar 2017, 6:22 PM
akash gupta
akash gupta - avatar
2 Respostas
+ 15
when u create functions in class then those function are called member function So, yes functions is the member of class when it is declared in class
12th Mar 2017, 6:29 PM
Mansi Dagla
Mansi Dagla - avatar
+ 1
actually, the friend functions aren't part of the class interface! they are defined outside the class' scope but they have right to access the private and protected member of the class.
12th Mar 2017, 9:21 PM
Mohammadreza
Mohammadreza - avatar