OOPS
November 11, 2023OOPS
November 11, 2023OOPS
|
Question 4
|
Friend functions have access to
|
Private and protected members
|
|
|
Public members only
|
|
|
Private members only
|
|
|
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.
