What is a friend function in C++?

Trainee Asked on August 15, 2019 in C++ Language.
Add Comment
1 Answer(s)

A function which is not a member of the class but still can access all the member of the class is called so. To make it happen we need to declare within the required class following the keyword ‘friend’.

Supporter Answered on August 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.