Пример #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)