Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tomcat(Cat):
- def __init__(self, name, age):
- super().__init__(self, name, age, "Male")
- def __repr__(self):
- result = f"Hiss\n"
- result += f"This is {self.name}. {self.name} is a {self.age} year old {self.gender} {self.__class__.__name__}"
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement