dot property access in C++
<p>I'm really new to C++ and one of the first things that has me really stumped is how to write a getter/setter that can use dot notation to get at a property.</p>

<p>For instance, instead of: </p>

<pre><code>myObj.getAlpha();
</code></pre>

<p>it would be</p>

<pre><code>myObj.alpha;
</code></pre>

<p>Is using dot notation like this frowned upon in C++ or is it just a pain to setup? I've had a hard time tracking down examples that weren't totally over my head so any guidance is much appreciated!</p>
