Variables and Objects

An object represents an region of storage that can hold a value, and some properties. An object with an identifier is called a variable.

1. Constants

A constant is a value that may not be changed during the program's execution. There are named constants and literal constants. Const variables must be initialized.


2. Data types

Property of an object that tells the compiler how to interpret the contents of it's memory.