Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from abc import ABC, abstractmethod
- class Animal(ABC):
- def __init__(self, name, age, gender):
- self.name = name
- self.age = age
- self.gender = gender
- @abstractmethod
- def __repr__(self):
- pass
- @abstractmethod
- def make_sound(self):
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement