Python - Multiple Inheritance and Method Resolution
What will be the output of this code?
class X:
def who(self):
return "X"
class Y:
def who(self):
return "Y"
class Z(X, Y):
def who(self):
return super().who()
z = Z()
print(z.who())