title: how to implement dynamic polymorphism in python
body: <p>I want to implement dynamic polymorphism in python like in java. Is it possible? if yes please  guide me how.I want to implement something like this:</p>
  
  <pre><code>class A {
      public void show() {
          System.out.println("Base class");
      }
  }
  
  class B extends A{
      public void show() {
          System.out.println("Derived class");
      }
  } 
  
  class C {
      public static void main(String args[]) {
          A a = new B();
          a.show(); // so it will call B's show method. 
      }
  }
  </code></pre>