answersLogoWhite

0

We can access a Friend function from any other class in which friend function is introduced or declared even if the other class is not a member of first class.

But when we use normal member function, we can have its access only in the derived classes of the first class.

This is the basic difference between a friend function and a normal member function.

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran

Add your answer:

Earn +20 pts
Q: What is the difference between friend function and normal member function?
Write your answer...
Submit
Still have questions?
magnify glass
imp