Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import abc
- class Walkable(abc.ABC):
- @abc.abstractmethod
- def walk(self):
- return NotImplemented
- class Flyable(abc.ABC):
- @abc.abstractmethod
- def fly(self):
- return NotImplemented
- class FlyableBird(Walkable, Flyable):
- pass
- class DisFlyableBird(Walkable):
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement