title: Call base class method from derived class object
body: <p>How can I call a base class method which is overridden by the derived class, from a derived class object?</p>
  
  <pre><code>class Base{
    public:
      void foo(){cout&lt;&lt;"base";}
  };
  
  class Derived:public Base{
    public:
      void foo(){cout&lt;&lt;"derived";}
  }
  
  int main(){
    Derived bar;
    //call Base::foo() from bar here?
    return 0;
  }
  </code></pre>