class Parent01(object):
def foo(self):
print("Parent01")
pass
class Parent02(object):
def foo(self):
print("Parent02")
pass
class Child(Parent01,Parent02):
def foo(self):
print("Child")
super(Parent01, self).foo()
pass
c = Child()
c.foo()
Output:
Child
Parent02
Why here is the output Parent02
?