class ClaseA:
def __init__(self):
self.x = 0
def mensaje(self):
print('ClaseA.mensaje')
class ClaseB(ClaseA):
def __init__(self):
super().__init__()
self.y = 1
def mensaje(self):
print('ClaseB.mensaje')
super().mensaje()
if __name__ == '__main__':
claseB = ClaseB()
claseB.mensaje()
Comments
0 B
|👍
/👎