0
What is the difference betwen function membre and function friend ??
2 Answers
+ 1
you mean class member. a class member gets an exicit pointer to the object it belongs to ('this' pointer).
a friend function is not part of the class, and you must supply it with an explicit pointer to the class instance you want the friend function to access.
0
functions are the member of the class have specific assigned task it just act like normal function, function are called using instance of class
friend it special keyword which gives the all access to a friend function or friend class from out side of the class but Friend functions are not member of the class