VB.net - Variables
Variables
Variables
A variable is a memory location used to store data. The value can be changed when the program is running.
Constants
Constants
A Constant is a memory location used to store data. The value does not change when the program is running.
Identifier
Identifier
The name given to a variable or constant to that is can be ‘identified’ and used in a program.
Declaring Variables
Declaring Variables
Variables (and constants) need to be allocated a space in memory. This is called declaring.
In many languages (including VB.net) you must also declare the type of data that will be stored in the variable.