title: C#-like properties in native C++?
body: <p>In <a href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29">C#</a> / <a href="http://en.wikipedia.org/wiki/.NET_Framework">.NET</a> you can do something like this:</p>
  
  <pre><code>someThing.text = "blah";
  String blah = someThing.text;
  </code></pre>
  
  <p>However, the above code does not actually interact with the someThing's text String directly, it uses a get and set property. Similarly, read-only properties can be used.</p>
  
  <p>Is there a way to do something similar in native <a href="https://en.wikipedia.org/wiki/C++">C++</a>? (not C++ .NET)</p>