What is the difference between friend function and normal member function?

1 answer

Answer

1125306

2026-08-26 16:15

+ Follow

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.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.