Vidyalelo
C++ Programming · Q28

Object Oriented Programming in C++

Programming · C++ Programming · question 28

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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board