Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 20)
20.
What is the purpose of the __mro__ attribute?
To access superclass attributes
To check if an object is an instance of a specific class
To determine the method resolution order of a class
To create a new instance of the class
Answer: Option
Explanation:
The __mro__ attribute is a tuple containing the method resolution order of a class, showing the order in which base classes are searched when resolving methods.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.