Variables
Local Variable
A local variable for a method or block (gone when the method is done).
Instance Variable
A instance variable owned by each object (it sticks around).
Class Variable
A class variable shared by all objects (it sticks around, too).
Global Variable
A global variable can be referred to from anywhere in a program.
Constant Variable
A constant variable is like a regular variable, except that its value is supposed to remain constant for the duration of a program.
Last updated