You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
405 B
35 lines
405 B
2 years ago
|
class Base:
|
||
|
def foo(self):
|
||
|
print("Base")
|
||
|
|
||
|
|
||
|
class A(Base):
|
||
|
def foo(self):
|
||
|
print("A")
|
||
|
super().foo()
|
||
|
|
||
|
|
||
|
class B(Base):
|
||
|
def foo(self):
|
||
|
print("B")
|
||
|
super().foo()
|
||
|
|
||
|
|
||
|
class C(A, B):
|
||
|
def foo(self):
|
||
|
print("C")
|
||
|
super().foo()
|
||
|
|
||
|
|
||
|
class D(B, A):
|
||
|
def foo(self):
|
||
|
print("D")
|
||
|
super().foo()
|
||
|
|
||
|
|
||
|
class E(C, D):
|
||
|
pass
|
||
|
|
||
|
|
||
|
print("HEELLO")
|