title: Default class inheritance access
body: <p>Suppose I have a base and derived class:</p>
  
  <pre><code>class Base
  {
      public:
      virtual void Do();
  }
  
  class Derived:Base
  {
      public:
      virtual void Do();
  }
  
  int main()
  {
      Derived sth;
      sth.Do(); // calls Derived::Do OK
      sth.Base::Do(); // ERROR; not calls Based::Do 
  }
  </code></pre>
  
  <p>as seen I wish to access Base::Do through Derived. I get a compile error as "class Base in inaccessible" however when I declare Derive as </p>
  
  <pre><code>class Derived: public Base
  </code></pre>
  
  <p>it works ok.</p>
  
  <p>I have read default inheritance access is public, then why I need to explicitly declare public inheritance here?</p>