New course! Every coder should learn Generative AI!
Try a free lesson0
What are the benefits of a private class ?
3 Answers
+ 1
u can restrict variable access to define class only. more using friend u can give access of private variable to other.
0
You can read C++ PRIMER Access Control and Encapsulation
0
None