Examveda
Examveda

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: Option D

Solution(By Examveda Team)

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

This Question Belongs to Python Program >> Advanced OOP Concepts

Join The Discussion

Related Questions on Advanced OOP Concepts

What is inheritance in OOP?

A. Creating new objects from existing ones

B. Allowing objects to share attributes and methods

C. Restricting access to object attributes

D. Converting classes into objects