title: Class vs Struct for data only?
body: <p>Is there any advantage over using a class over a struct in cases such as these? 
  (note: it will only hold variables, there will never be functions)</p>
  
  <pre><code>class Foo { 
  private:   
     struct Pos { int x, y, z };
  public:    
     Pos Position; 
  };
  </code></pre>
  
  <p>Versus:</p>
  
  <pre><code>struct Foo {
     struct Pos { int x, y, z } Pos;
  };
  </code></pre>
  
  <hr>
  
  <p>Similar questions:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/54585/when-should-you-use-a-class-vs-a-struct-in-c">When should you use a class vs a struct in C++?</a></li>
  <li><a href="https://stackoverflow.com/questions/92859/what-are-the-differences-between-struct-and-class-in-c">What are the differences between struct and class in C++?</a></li>
  <li><a href="https://stackoverflow.com/questions/85553/when-should-i-use-a-struct-instead-of-a-class">When should I use a struct instead of a class?</a></li>
  </ul>