C++ Friend Question:
Download Job Interview Questions and Answers PDF
List the characteristics of friend functions?
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 Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the friend class in C++? | What are the C++ friend classes? Explain its uses with an example? |