6
Lurisan
7y

class test:
def __init__(self, x):
self.x=x
def printer (self):
print self.x

class new(test):
def __init__(self, y, z):
test.__init__(self, y)
self.y=z
def printer (self):
test.printer(self)
print self.x
super(new, self).printer()
print self.y

N1=new(1,2)
N1.printer()

Is this correct in all respects ??
If erroneous, where ??

Comments
Add Comment