private and public

If you create an instance of a class, you can access the public variables and public methods through that instance. You can not access the private ones.

The _ is a convention that is often used to indicate that a variable is private.