LogiQuest
Back to Object Oriented Programming
4

What is the output of the following code?

class A:
    def hello(self):
        return 'A'
class B(A):
    def hello(self):
        return 'B' + super().hello()
print(B().hello())
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.