Q28
What is the purpose of the 'friend' keyword in C++?
A.
To create class-level variables and functions
B.
To specify the type of a variable
C.
To enable polymorphism through function overriding
D.
To allow a function or class to access private and protected members of another class
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board