+ 1
Why we put the datas in private
2 odpowiedzi
+ 2
So other things can't access it
+ 1
The code becomes safer (and easier to understand and reuse) when we use the private keyword for variables and methods that should be accessible only within the declared class itself.