Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 104)
104.
How does Python handle multiple inheritance conflicts for attribute resolution?
By automatically resolving conflicts using the first defined attribute
By raising an error and requiring explicit resolution using super()
By using the C3 linearization algorithm to determine attribute resolution order
Multiple inheritance conflicts are not allowed in Python
Answer: Option
Explanation:
Python automatically resolves attribute conflicts in multiple inheritance by using the attribute defined in the first class.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.