title: C++ interface multiple inheritance with same method
body: <p>I need to inherit from two interfaces which both have the same method which in both cases should perform exactly the same thing. Is this code correct or not? I need this for some kind of proxy class. Thanks for answers.</p>
  
  <pre><code>class InnerInterface {
      virtual int getID() const = 0;
      //...
  };
  class OuterInterface {
      virtual int getID() const = 0;
      //...
  };
  class Foo : public InnerInterface, public OuterInterface {
      virtual int getID() const;
      //all abstract methods
  };
  </code></pre>