Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class One(object):
- def me(self):
- print('One')
- class Two(One):
- def me(self):
- print('Two')
- super().me()
- class Three(One):
- def me(self):
- print('Three')
- super().me()
- class Four(Two, Three):
- def me(self):
- print('Four')
- super().me()
- class Five(Three, Two):
- def me(self):
- print('Five')
- super().me()
- Four().me()
- print('')
- Five().me()
- ---------------------------------------------------
- Four
- Two
- Three
- One
- Five
- Three
- Two
- One
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement