Here's a class hierarchy with multiple inheritance:
class A:
...
class B(A):
...
class C(A):
...
class D(C, B):
...
What will be the output of print(D.__mro__)?
Here's a class hierarchy with multiple inheritance:
class A:
...
class B(A):
...
class C(A):
...
class D(C, B):
...
What will be the output of print(D.__mro__)?
Create a free account to access the full topic