Functions
Function Structure

public-> visibility declarationview-> Indicates function behaviorreturns-> type of variable being returned
You cannot create a function with the same name as a storage variable. Will conflict with getter function.
There are 2 types of functions that you can create in Solidity:
Functions that create transaction on block chain
Functions that do not create transaction on block chain (view and pure)
For more details see: Running Functions page
Last updated