Yes, use the get... and set.. methods to access and change the variable.


You need to have a reference to an instance of the class with the variable; then call the get... method for the variable:...