Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement