Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

Blessing988 Mar 29th, 2020 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SuperClass
  2.  
  3. class Clothing( ):
  4.  
  5.     def wear(self):
  6.         return "I'm wearing this fashionable piece of clothing!"
  7.  
  8.     def sell(self):
  9.         return "Buy my piece of clothing"
  10. #SubClass
  11.  
  12. class Socks(Clothing):
  13.  
  14.     def lose_one(self):
  15.         return "Where did my other one go?"
  16.  
  17.     def wear(self):
  18.         return "Take a look at my socks! They're gorgeous!"
  19.  
  20.     def sell(self):
  21.         return "Buy my socks!"
  22.  
  23. #Testing
  24. clean_socks = Socks()
  25. print(clean_socks.wear())
  26. print(clean_socks.lose_one())
  27. print(clean_socks.sell())
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