Guest User

Untitled

a guest
Jan 24th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class Duck:
  2. def quack(self):
  3. print("Quaaaaaack!")
  4. def feathers(self):
  5. print("The duck has white and gray feathers.")
  6.  
  7. class Person:
  8. def quack(self):
  9. print("The person imitates a duck.")
  10. def feathers(self):
  11. print("The person takes a feather from the ground and shows it.")
  12. def name(self):
  13. print("John Smith")
  14.  
  15. def in_the_forest(duck):
  16. duck.quack()
  17. duck.feathers()
  18.  
  19. def game():
  20. donald = Duck()
  21. john = Person()
  22. in_the_forest(donald)
  23. in_the_forest(john)
  24.  
  25. game()
Add Comment
Please, Sign In to add comment