title: C++ how to call a parent class method from contained class?
body: <p>I am trying to make a call to a Parent class method from a contained object, but have no luck with the following code. What is the standard way to do it?</p>
  
  <p>I have searched around and this seems to work for inherited objects, but not for contained objects. Is it right to call it a Parent class even? Or is it called an Owner class?</p>
  
  <pre><code>class Parent{
  private:
    Child mychild;
  
  public:
    void doSomething();
  }
  
  class Child{
  public:
    void doOtherThing();
  }
  
  void Child::doOtherThing(){
    Parent::doSomething();
  }
  </code></pre>