class father:
def __init__(self):
print("Dad")
class mother:
def __init__(self):
print("Mom")
class child(father,mother):
def __init__(self):
super().__init__()
print("Child")
child()
Output:
Dad
Child
How to do it correctly such that the mother is initialized as well?
I understand this problem has been addressed previously, but I can only find either long explanations about MRO or modifications to the father and mother class, which is in my case not allowed. I'm sure this problem is more trivial than that...