+ 1
What is the use of private members or member functions if they can't be used outside that class
Classes
3 Answers
+ 1
Important data or Gaming currencies are stored in private member's.
If these things are in public, then any hacker can change them.
0
That is exactly the use of private methods â that you do not use them outside of the class
0
This is called (data hiding).