Intermediateconceptual
Is multiple inheritance possible in Python? Write pseudocode for it and explain how Python resolves method conflicts.
ReportedSource: GeeksforGeeks interview experience: Deloitte Analyst on-campus 2022-23
Quick answerFree
Yes, class C(A, B). Conflicts resolve by the MRO (C3 linearisation: class, then parents left to right, each once); super() follows the MRO so diamond hierarchies call each method once. Java allows it only via interfaces.
Detailed answer· ~100 words
Interview PrepUnlock the full answer with Interview Prep
Get a ~100-word model answer, plus 233 more Python questions.
Also in Pro (₹499 / 90 days).
+ 233 more Python questions in Interview Prep, each with the full answer.