Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Duck:
- def quack():
- print('Quack!')
- class Goose:
- def quack():
- print('Quack')
- Goose().quack()
- >> Quack!
- Duck().quack()
- >> Quack!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement