title: Base class private member belongs to which part of Derived class?
body: <pre><code>class base {
      public:
          int getC() {return c;}
          int a;
      protected:
          int b;
      private:
          int c;
  }
  
  class derived: public base {
      public:
          int getD() {return d;}
      private:
          int d;
  }
  </code></pre>
  
  <p>Now, class derived has public member:</p>
  
  <pre><code>int getC() {return c;}
  int getD() {return d;}
  int a;
  </code></pre>
  
  <p>protected member:
  <code>
  int b;
  </code>
  private member:
  <code>
  int d;
  </code>
  I can't comfirm if <code>int c;</code> is a private member of class derived. It's clear that any new member function of <code>class derived</code> can't access <code>c</code>. So, if <code>c</code> is a private member of <code>class derived</code>, the member function of <code>class derived</code> should have right to access <code>c</code>. So <code>c</code> is a what kind of member of class derived?</p>