13 lines
231 B
Python
13 lines
231 B
Python
class A:
|
|
def __init__(self):
|
|
print('A.__init__called')
|
|
|
|
def __del__(self):
|
|
print('A.__del__called')
|
|
|
|
class B(A):
|
|
def __init__(self):
|
|
super().__init__()
|
|
print('B.__init__called')
|
|
|