title: Re-declaring a function in C++ class
body: <pre><code>class arbit
      {
          int var;
          public:
  
          int method1();
          int method1() const;
  
      };
  </code></pre>
  
  <p>Why does g++ does not give warning while declaring the same function twice here ?</p>