What Is The Difference Between Member Function And Friend Function?

3

3 Answers

Anonymous Profile
Anonymous answered
A friend function cannot be called  using the object of the class.
A member function is called using the object of the class.
Naga Raju Profile
Naga Raju answered
Member functions will have the access on its own private variables and the the some public variables of other classes but a friend function will have the accessibility on private variable of other classes too.
ghazal gi Profile
ghazal gi answered
Member function is a function defined inside a class while friend function is a function that can access the member functions and the variables of that class.

Answer Question

Anonymous