Python - Multiple Inheritance and Method Resolution
What will be the output of the following code?
class Parent1:
def message(self):
return "Message from Parent1"
class Parent2:
def message(self):
return "Message from Parent2"
class Child(Parent2, Parent1):
pass
obj = Child()
print(obj.message())