Sobes.tech
Junior — Senior

Method definition in a class hierarchy with diamond inheritance

livecode

Task condition

How will Python search for the implementation of the method for an instance of a class, considering the following inheritance scheme:

class A:
    ...

class B(A):
    ...

class C(A):
    ...

class D(B, C):
    ...

obj = D()
obj.method