classes friend | Sololearn: Learn to code for FREE!


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


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