Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import abc
  2.  
  3. class Walkable(abc.ABC):
  4.  
  5. @abc.abstractmethod
  6. def walk(self):
  7. return NotImplemented
  8.  
  9. class Flyable(abc.ABC):
  10.  
  11. @abc.abstractmethod
  12. def fly(self):
  13. return NotImplemented
  14.  
  15. class FlyableBird(Walkable, Flyable):
  16.  
  17. pass
  18.  
  19. class DisFlyableBird(Walkable):
  20.  
  21. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement