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.
Loading...
Related Quiz
- To check for possible errors or failures in file operations, you should check the _______.
- In which scenarios could the use of goto be considered acceptable or even advisable?
- How does a range-based for loop work in C++11 and above?
- When dealing with binary files, the ios::binary mode should be used in conjunction with another mode such as _______.
- What implications does the "Rule of Three" have in C++ class design?