What is the diamond problem in multiple inheritance in Python?
Correct answer
A. Ambiguity when a class inherits the same base through two paths
6 views
A. Ambiguity when a class inherits the same base through two paths
6 views
Python resolves it using C3 linearization.
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.