18 lines
217 B
Python
18 lines
217 B
Python
|
class A:
|
||
|
def error(self):
|
||
|
print("A.error")
|
||
|
|
||
|
class B(A):
|
||
|
def error(self):
|
||
|
print("B.error")
|
||
|
|
||
|
class C(A):
|
||
|
def error(self):
|
||
|
print("C.error")
|
||
|
|
||
|
class D(B, C):
|
||
|
pass
|
||
|
|
||
|
d = D()
|
||
|
d.error()
|