How can we influence the accessibility of variables and methods?

The public keyword makes things available to pretty much any classPrivate things can only be accessed from within their classWe can use so-called modifiersThe secure keyword makes variables and methods impossible to crack

Nice! We can use private and public. Private variables and methods can only be modified from within their class while public things are available to any class.

Close! We can use private and public. Private variables and methods can only be modified from within their class while public things are available to any class.