Vidyalelo
Python · Q5

Advanced OOP Concepts

Programming · Python · question 5

Q5

What is a method resolution order (MRO) in Python?

A.
The order of methods in a class
B.
The order in which classes are defined
C.
The order in which methods are executed
D.
The order in which base classes are searched
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The method resolution order (MRO) determines the order in which base classes are searched for a method or attribute.