title: How to define a class within another class' private in C++
body: <p>Is it possible to define a class in another classes private and use it for an array? For instance:</p>
  
  <pre><code>class a
  {
      public:
      private:
      class b;
      b myarray[10];
  
      class b
      {
          public:
          b(int a):a_val (a){}
          private:
          int a_val;
      };
  };
  </code></pre>
  
  <p>Ignoring public, is there anything wrong with my syntax? </p>
  
  <p><strong>Is it also possible to make a member function in A to modify the private values of b. For instance, myarray[0].a_val = 5; If so, is this syntax also correct?</strong></p>