can we call member function through friend functions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

can we call member function through friend functions?

13th Sep 2016, 4:09 PM
Bint E Asif
Bint E Asif - avatar
4 Answers
+ 5
Yes, you can. A friend function has access to all members of the class.
13th Sep 2016, 4:12 PM
Zen
Zen - avatar
+ 3
yes
19th Sep 2016, 10:25 AM
Gourav Bisen
Gourav Bisen - avatar
+ 2
yes
22nd Sep 2016, 2:17 PM
Mahadevan S K
+ 2
yes
23rd Sep 2016, 12:01 AM
Lunesco
Lunesco - avatar