SHARE
TWEET

Untitled

a guest Apr 21st, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Duck:
  2.    def quack():
  3.       print('Quack!')
  4. class Goose:
  5.    def quack():
  6.       print('Quack')
  7. Goose().quack()
  8.  
  9. >> Quack!
  10. Duck().quack()
  11. >> Quack!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top