New course! Every coder should learn Generative AI!
Try a free lesson0
classes friend
why we need friend class if we can pass values to the members of private through public?
1 Answer
- 3
if we want to share private members in another class we use friend keyword .