class base():
insCounter=0
def __init__(self):
self.__class__.insCounter +=1
def insPrint(self):
print self.__class__.insCounter
class tester(base):
insCounter=2
def __init__(self):
self.__class__.insCounter+= 1
def insPrint(self):
base.insPrint( tester() ) # ------->>> use v ,tester(), base()
v=tester()
v.insPrint()
insCounter=0
def __init__(self):
self.__class__.insCounter +=1
def insPrint(self):
print self.__class__.insCounter
class tester(base):
insCounter=2
def __init__(self):
self.__class__.insCounter+= 1
def insPrint(self):
base.insPrint( tester() ) # ------->>> use v ,tester(), base()
v=tester()
v.insPrint()