0

Why is the friend?

Why is the friend keyword when both getter and setter can solve this problem, so why should I use it or when should I use this keyword?

29th Oct 2021, 11:12 AM
Domonkos Gyömörey
Domonkos Gyömörey - avatar
2 Answers
+ 2
I see you have completed the C++ tutorial 👍 Maybe you forget this chapter https://www.sololearn.com/learn/CPlusPlus/1899/?ref=app
29th Oct 2021, 12:38 PM
Ipang
0
I’ve seen it more than once, but I don’t know what is the reason why I should use this keyword, what is the situation where it is necessary to use it?
29th Oct 2021, 2:34 PM
Domonkos Gyömörey
Domonkos Gyömörey - avatar