- Data Type
- Value : Containing Some Values | if a Value type changes, only that specific variable is affected
- int
- float
- double
- boll
- char
- Structs(containing one or more other variables)
- Vector3
- Quaternion
- …
- Reference : Containing a Memory Addresse where the value is stored | if a Reference type changes, all variable that contain that memory address will also be affected
- Classes
- Transform
- GameObject
- Classes
- Value : Containing Some Values | if a Value type changes, only that specific variable is affected
WEEK1 | 1-3 |Starting to program| Data Types, Variables, and Constants




Data Types, Variables, and Constants
- everything in a computer is represented in binary
- the data type of a variable or constant tells how to interpret the bits
- the data type of a variable or constant tells what we can do (the valid operations for the variable)

- we declare Variables to allocate memory for the
- (=to get memory space for values we need to store)
- providing the data type, and the variable name
- optionally, providing a value
- we declare Constants to allocate memory for them
- (=to get memory space for values we need to store)
- providing the data type, and the constant name
- necessarily, providing the value
- the value of a variable can change while running the program
- the value of a constant can’t change while running the program
Integers
- 0, 42, -11
- class
- byte : 8bits
- short : 16bits
- int : 32bits
- long : 64bits
- not to waste memory, it is important to choose the appropriate class

Floating Point Numbers
- 1.912831631238…..
- Real Number
- we don’t have infinite number of bits in a computer
- we can’t represent the infinite set of real number
- discrete domain
- inaccuracy
- class
- float : 32bits
- double: 64bits








