I tried quite a few times, but didn't get the following codes work
Thanks in advance for any help/suggestions
class A(object):
def __init__(self,x,y,z):
self.c=C(x,y,z)
def getxyz(self):
return self.c.getxyz()
class B(object):
def __init__(self,x,y):
self.x=x
self.y=y
def getxy(self):
return self.x, self.y
class C(B):
def __init__(self,x,y,z):
super(C,self).__init__(x,y)
#self.x,self.y=x,y
self.z=z
def getxyz(self):
(x,y)=self.getxy()
return x,y,self.z
a=A(1,2,3)
a.getxyz()