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: Option D

Join The Discussion