classes friend | Sololearn: Learn to code for FREE!

0

classes friend

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

9/24/2016 6:27:08 PM

Muhammad Yasir Khan

1 Answer

New Answer

-3

if we want to share private members in another class we use friend keyword .