Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. from abc import ABC, abstractmethod
  2.  
  3. class Hands(object):
  4. pass
  5.  
  6. class human(ABC):
  7.  
  8. def __init__(self):
  9.  
  10. self.hand=Hands()
  11.  
  12. @property
  13. def Hands(self):
  14. pass
  15.  
  16. class american_hands(Hands):
  17. pass
  18.  
  19.  
  20. #I want to make sure that a class of type human will have a member of type hands which is called hand
  21. class american(human):
  22.  
  23. def __init__(self):
  24. self.hand=american_hands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement