C++ Friend Question:
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.
Previous Question | Next Question |
What is the friend class in C++? | What are the C++ friend classes? Explain its uses with an example? |