C++ Friend Question:

List the characteristics of friend functions?

Tweet Share WhatsApp

Answer:

Friend functions are not a part of the class and are external. This function is a "Friend" of a class. This is to say, it has special privileges to access to the class's private and protected members.

Download C++ Friend PDF Read All 20 C++ Friend Questions
Previous QuestionNext Question
What is the friend class in C++?What are the C++ friend classes? Explain its uses with an example?