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