In python i have 3 classes a,b,c. class c is subclass of a,b. now when I'm creating object of class c, the constructor of only class c is beig called. I was expecting the constructor of class a,b also to be called.
class a:
def __init__(self):
print("initializing a")
class b:
def __init__(self):
print("initializing b")
class c(a,b):
def __init__(self):
print("initializing c")
e=c()
I got this result
initializing c
I was expecting
initializing a
initializing b
initializing c