by drcode · 10y ago · 0 comments
contract Hello { string greeting; function setName(string name) { greeting="Hello "+name; } }
The solidity compiler will automatically produce a "getter" function to retrieve the greeting.