One thing I never understood when learning programming is why make everything private? What's the use of a scope? When are there advantages to using this?
I don't see the advantage of making it so certain parts of your code cannot acces other parts of your code because they're private. Why not make everything public and not risk you accidently try to acces something that you can't.
I don't see the advantage of making it so certain parts of your code cannot acces other parts of your code because they're private. Why not make everything public and not risk you accidently try to acces something that you can't.