title: C++ should all member variable use accessors and mutator
body: <p>I have about 15~20 member variables which needs to be accessed, I was wondering 
  if it would be good just to let them be public instead of giving every one of them 
  get/set functions.</p>
  
  <p>The code would be something like</p>
  
  <pre><code>class A { // a singleton class
  public:
      static A* get();
  
      B x, y, z;
      // ... a lot of other object that should only have one copy
      // and doesn't change often
  
  private:
      A();
      virtual ~A();
      static A* a;
  };
  </code></pre>
  
  <p>I have also thought about putting the variables into an array, but I don't
  know the best way to do a lookup table, would it be better to put them in an array?</p>
  
  <p>EDIT:</p>
  
  <p>Is there a better way than Singleton class to put them in a collection</p>