Declaring variables

Last updated 3 months ago

Local variables

Mutable

Immutable

Dynamic

Non-local variables

In a class

In a struct

In a script

Access modifier annotate blocks

The access modifier annotate block can set the access specifier for multiple variables at a time. Access modifier blocks can only be used in classes and scripts.

In a class

In a script