Advertisement
nitty01

Untitled

Apr 1st, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. class Clothing():
  2.     def wear(self):
  3.         return "I,m wearimg this fashionable piece of clothing!"
  4.     def sell(self):
  5.         return"Buy my piece of clothing!"
  6.        
  7.        
  8. class Socks(Clothing):
  9.     def lose_one(self):
  10.         return "Where did my other one go?"
  11.     def wear(self):
  12.         return "Take a look at my socks! They're gorgeous!"
  13.     def sell(self):
  14.         return"Buy my socks!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement