OOPS

November 11, 2023

OOPS

November 11, 2023

OOPS

November 11, 2023

OOPS

November 11, 2023

OOPS

Question 4
Friend functions have access to
A
Private and protected members
B
Public members only
C
Private members only
D
None
Question 4 Explanation: 
A friend function of a class is defined outside that class’ scope but it has the right to access all private and protected members of the class.
Correct Answer: A
Question 4 Explanation: 
A friend function of a class is defined outside that class’ scope but it has the right to access all private and protected members of the class.

Leave a Reply

Your email address will not be published. Required fields are marked *