I am trying to inherit 2 classes as parent class in a child class both have different class variables class A has a,b while class B has c,d,e they are the parent to class AB(A,B) now i want to make an object of AB class but i am not able understand how to pass the value while i try to create an object of AB class
class A:
def __init__(self,a,b):
self.a = a
self.b = b
def testa(self):
print('inside A')
class B:
def __init__(self,c,d,e):
self.c = c
self.d = d
self.e = e
def testb(self):
print('inside B')
class AB(A,B):
def __init__(self,*args):
A.__init__(self,*args)
B.__init__(self,*args)
obj = AB(1,2,3) # this is throwing error