September 2019
Beginner to intermediate
540 pages
13h 3m
English
State variables are values that are permanently stored in contract storage and are used to maintain the contract's state. As shown in the preceding HelloWorld contract, greeting is the state variable and is defined as a string type with a visibility of X.
The visibility of a state variable can be defined as public, private, or internal, as follows:
Read now
Unlock full access