In C++, if a function f is defined as a friend function, then which of the…
2018
In C++, if a function f is defined as a friend function, then which of the following category of data members can be accessed using the function f ?
Answer: D. Public, Private and Protected
- A.
Only Private
- B.
Only Protected
- C.
Only Public
- D.
Public, Private and Protected
Attempted by 584 students.
Show answer & explanation
Correct answer: D
Loading lesson…