Python - Multiple Inheritance and Method Resolution
Given these classes:
What is the output and why?
class A:
def method(self):
return "A"
class B(A):
def method(self):
return "B"
class C(A):
def method(self):
return "C"
class D(B, C):
pass
obj = D()
print(obj.method())What is the output and why?
