def __init__(self, str): print "Inside Simple2 constructor" # You must explicitly call # the base-class constructor: Simple.__init__(self, str)
def show(self): print "Overridden show() method" # Calling a base-class method from inside # the overridden method: Simple.show(self)