Python - Polymorphism and Dynamic Behavior
Consider this code:
What is the output?
class A:
def method(self):
return 'A'
class B(A):
def method(self):
return super().method() + 'B'
class C(B):
def method(self):
return super().method() + 'C'
obj = C()
print(obj.method())What is the output?
