title: In C++ are static member functions inherited? If yes why ambiguity error does not arise?
body: <p>I am just starting out with gnu-cpp and would like some help. I have come across the ambigutity error while reading and while self-study I came across this idea that static methods of a class should also be affected by the ambiguous diamond problem, but while running the following code ther is no error. Can anyone please explain why?</p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  class Base
  {
    public:
    static void display(){cout&lt;&lt;"Static";}
  };
  class Derived1 : public Base {};
  class Derived2 : public Base {};
  class Child : public Derived1, Derived2 {};
  int main(void)
  {
    Child obj;
    obj.display();
  }
  </code></pre>
  
  <p>Thank You for the help and time.</p>