Functions
Last updated
Last updated
public
-> visibility declaration
view
-> Indicates function behavior
returns
-> Data type that the function returns (optional)
public -> functions can be called both internally and externally
external -> only external calls; cannot be accessed internally
internal -> only this contract and contracts deriving from it can access
private -> functions can only be called from within the contract
Cannot create a function with the same name as a storage variable. Will conflict with getter function.