16 lines
250 B
Python
16 lines
250 B
Python
class A:
|
|
def __init__(self):
|
|
print('A.__init__')
|
|
|
|
class B:
|
|
def __init__(self):
|
|
print('B.__init__')
|
|
|
|
class C(A, B):
|
|
def __init__(self):
|
|
A.__init__(self)
|
|
B.__init__(self)
|
|
print('C.__init__')
|
|
|
|
c = C()
|