classes friend | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

classes friend

why we need friend class if we can pass values to the members of private through public?

24th Sep 2016, 6:27 PM
Muhammad Yasir Khan
Muhammad Yasir Khan - avatar
1 Antwort
- 3
if we want to share private members in another class we use friend keyword .
29th Sep 2016, 2:45 PM
Mohd Zaki
Mohd Zaki - avatar