Please enable JavaScript to use CodeHS

CodeHS Glossary


object.instanceVariable Java

Instance variables can be accessed directly by using the reference variable name + . + the instance variable name. This only works within the class file if the instance variables are set to private.