Question OOP-INH-0036
EasyWhat is the output of this code?
class A:
def name(self):
return "A"
class B(A):
def name(self):
return "B"
print(A().name() + B().name())
- A.
AB
- B.
BA
- C.
Sign up free to see the answer and a step-by-step explanation.