pr3-skriptspr-gruppef-sl1/SL2/s2_a1.py

18 lines
217 B
Python
Raw Normal View History

2023-01-13 10:34:41 +01:00
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()