コード例 #1
0
ファイル: Simple2.py プロジェクト: 12130157/fpt-aptech1
 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
ファイル: Simple2.py プロジェクト: 12130157/fpt-aptech1
 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)