Which function checks whether a class inherits from another in Python?
Correct answer
A. issubclass()
6 views
A. issubclass()
6 views
issubclass(C, B) tests inheritance relationships.
Asked in: Python Interview OOP
https://docs.python.org/3/tutorial/classes.htmlNot sure why the answer is A? Ask here and get an explanation.