Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
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