In C++, programs, where does the keyword friend appears?
A) Class allowing access to another class
B) Private section of a class
C) Private section of a class
D) All of these
Solution: D is correct
A friend function in C++ is defined as a function that can access private, protected and public members of a class. The friend function is declared using the friend keyword inside the body of the class.