Constructor functions are only executed once when the contract is first deployed. Like constructor in many class-based programming languages, these functions often initialize state variables to their specified values.
Read more about it in the docs at Constructor definition and in the Contract creation.
Constructor functions are only executed once when the contract is first deployed. Like constructor in many class-based programming languages, these functions often initialize state variables to their specified values. Read more about it in the docs at Constructor definition and in the Contract creation.