It would look something like:
contract Hello { string greeting; function setName(string name) { greeting="Hello "+name; } }
The solidity compiler will automatically produce a "getter" function to retrieve the greeting.
contract Hello { string greeting; function setName(string name) { greeting="Hello "+name; } }
The solidity compiler will automatically produce a "getter" function to retrieve the greeting.