Source Code:
(back to article)
class Parent1: def method(self): print("Parent1 method") class Parent2: def method(self): print("Parent2 method") class Child(Parent1, Parent2): def method(self): super(Parent1, self).method() super(Parent2, self).method() c = Child() c.method()
Result:
Report an issue