Guest User

Untitled

a guest
Jul 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. class Material:
  2. pass
  3.  
  4.  
  5. class Vacuum(Material):
  6. def __str__(self):
  7. return 'vacuum'
  8.  
  9.  
  10. class Aluminum(Material):
  11. def __str__(self):
  12. return 'aluminum'
  13.  
  14.  
  15. class Graphite(Material):
  16. def __str__(self):
  17. return 'graphite'
  18.  
  19.  
  20. class Beryllium(Material):
  21. def __str__(self):
  22. return 'beryllium'
  23.  
  24. allowed_materials = ['vacuum', 'aluminum', 'graphite',]
Add Comment
Please, Sign In to add comment