title: Access value of a variable in a nested class
body: <p>header file:</p>
  
  <pre><code>class A
  {
  public:        
      void setNumber(unsigned );
      void changeNumber();  
      unsigned result;
  
      class B
      {
      public:
          void setResult();
          unsigned valorB;
      };
  
  private:                           
      static unsigned number; 
  };
  </code></pre>
  
  <p>Implementation file:</p>
  
  <pre><code>void A::setNumber(unsigned value)
  {
      number = value;
  }
  
  void A::changeNumber()
  {
      result = number * 5 + 10;
  }
  
  void A::B::setResult()
  {
      valorB = number + 5;
  }
  </code></pre>
  
  <p>How can I access a variable in the internal class? I know how to access the variables of A, but i don't know how i do to access variables of B.</p>
  
  <p>I want to access "valorB".</p>