diamond-problem

python multiple inheritance passing arguments to constructors using super

python multiple inheritance passing arguments to constructors using super Question: Consider the following snippet of python code class A(object): def __init__(self, a): self.a = a class B(A): def __init__(self, a, b): super(B, self).__init__(a) self.b = b class C(A): def __init__(self, a, c): super(C, self).__init__(a) self.c = c class D(B, C): def __init__(self, a, b, c, …

Total answers: 4