title: Override methods with same name in Python programming
body: <blockquote>
  <p><strong>Possible Duplicate:</strong> <br/>
  <a href="https://stackoverflow.com/questions/10202938/how-do-i-use-method-overloading-in-python">How do I use method overloading in Python?</a></p>
  </blockquote>
  
  <p>I am new to Python programming, and I like to write multiple methods with the same name, but why only the method which is called recently get printed?</p>
  <p>Code is below:</p>
  <pre><code>class A:
      def mymethod(self):
          print 'first method'
      def mymethod(self):
          print 'second method'
  ob = A()
  ob.mymethod()
  </code></pre>
  <p>With the output as <code>second method</code>.</p>
  <p>What is the mechanism behind this Python method calling? Can I call two methods of the same name at the same time?</p>