The keyword _______ is used to grant a function or class access to the private and protected members of another class in C++. 

  • using 
  • friend 
  • grant 
  • access
The keyword "friend" in C++ is used to specify that a particular external function or another class can access the private and protected members of the class in which it is declared. This is fundamental to the concept of friend functions and friend classes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *