Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from abc import ABC, abstractmethod
- class Hands(object):
- pass
- class human(ABC):
- def __init__(self):
- self.hand=Hands()
- @property
- def Hands(self):
- pass
- class american_hands(Hands):
- pass
- #I want to make sure that a class of type human will have a member of type hands which is called hand
- class american(human):
- def __init__(self):
- self.hand=american_hands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement