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