title: C++ getters and setters best style
body: <p>in Java code convention is simple and obvious, in this style:</p>
  
  <pre><code>public:
      int GetMyAge(){
          return myAge;
      }
      void SetMyAge(int myAge){
          this-&gt;myAge = myAge;
      }
  private:
      int myAge;
  </code></pre>
  
  <p>(I know it's "again the same thing", <strong>but</strong>) I have read most of related questions on SO and I still don't know "the best one" and "the most official" way to do it in C++. It can't be just a matter of preferences, <strong>can it</strong>? </p>
  
  <p>EDIT:</p>
  
  <p>Seems like <strong>it can</strong>.</p>