Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Method Resolution Order | Inheritance
In-Depth Python OOP
course content

Зміст курсу

In-Depth Python OOP

Method Resolution Order

Method Resolution Order is an order of searching the attributes/methods from Parent classes.

To check this order, you can use the mro() built-in method:

The mro() method returns a list of classes that represents the method and attribute search order.

Note

The mro() method can be called via classes, not for instances.

Note

Pay attention: all objects in Python are inherited from the object class.

Все було зрозуміло?

Секція 2. Розділ 4
We're sorry to hear that something went wrong. What happened?
some-alt