title: Best Way to call Child method from Parent in c++ inheritance
body: <p>and I am facing a trouble with polymorphic classes and inheritance.</p>
  <p>I have a parent class</p>
  <pre><code>//calibration.h 
  class Calibration {
  private:
  public:
  void init();
  void calc():
  void close();
  void saveFile();
  }
  
  //calibration.cpp
  Calibration::Calibration(){}
  void Calibration::saveFile(){
  std::ofstream out;
      out.open(&quot;cores.arff&quot;);
  out &lt;&lt; &quot; &quot; &lt;&lt; std::endl;
  out.close();
  }
  </code></pre>
  <p>and I have two children</p>
  <pre><code>//automatic.cpp 
  Automatic::Automatic(){}
  void Automatic::config(){
  ....
  }
  void Automatic::calibrate(){
  ....
  }
  
  void Calibrate::init(){
   Automatic::config();
  }
  
  
  //manual.h
  #include &quot;calibration.h&quot;
  class Manual : public Calibration {
  public:
  void calibrate();
  }
  
  
  //manual.cpp 
  Manual::Manual(){}
  
  void Manual::calibrate(){
  ....
  }
  
  void Calibrate::init(){
   Manual::calibrate();
  }
  </code></pre>
  <p>How I correct call <code>Manual::calibrate</code> and <code>Automatic::config</code> from <code>Calibrate::init()</code> ?</p>
  <p>I have tried:</p>
  <pre><code>void Calibrate::init(){
   Automatic::config();
  }
  </code></pre>
  <p>but the error I got was:</p>
  <blockquote>
  <p>error: no  member function declared in class 'automatic'</p>
  </blockquote>