LogiQuest
Back to Object Oriented Programming
14

What is the output of the following code?

class A:
    def hi(self):
        return 'A'
class B(A):
    def hi(self):
        return 'B' + super().hi()
print(B().hi())
Easy

Discussion (0)

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

Log in to join the discussion.

What is the output of the following… | LogiQuest