What happens if you instantiate a class with an unimplemented abstractmethod in Python?
Correct answer
B. TypeError
8 views
B. TypeError
8 views
Python raises TypeError because the abstract class cannot be instantiated.
Asked in: Python Interview OOP
https://docs.python.org/3/tutorial/classes.htmlNot sure why the answer is B? Ask here and get an explanation.