Question OOP-INH-0043
MediumWhat is the output of this code?
class A:
def hello(self):
return "A"
class B(A):
def hello(self):
return "B" + super().hello()
class C(B):
def hello(self):
return "C" + super().hello()
print(C().hello())
- A.
CB
- B.
ABC
- C.
Sign up free to see the answer and a step-by-step explanation.