LogiQuest
Back to Object Oriented Programming
7

What is the output of the following code?

class A: pass
class B(A): pass
print(isinstance(B(), A), issubclass(A, B))
Easy

Discussion (0)

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

Log in to join the discussion.