Question: what is the difference between friend function and member function?
Answer: 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.