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

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
JudyJudy
Simplicity is my specialty.
Chat with Judy

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