override methods with same name in python programming
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://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,i like to write multiple methods with same name,but why only the method which is called recently get printed?code as 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 o/p as <code>second method</code></p>

<p>please tell me what is the mechanism behind this python method calling.can i call two methods of same name at same time.. </p>

<p>Thanks
Mukthyar</p>
