Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Seniv Volodymyr committed Aug 24, 2023
1 parent 223251a commit 4962b69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ def feed(self) -> int:

class Cat(Animal):
def __init__(self, name: str, is_hungry: bool = True) -> None:
super().__init__(name, appetite=3, is_hungry=is_hungry)
super().__init__(name, appetite=3)
self.is_hungry = is_hungry

def catch_mouse(self) -> None:
print("The hunt began!")


class Dog(Animal):
def __init__(self, name: str, is_hungry: bool = True) -> None:
super().__init__(name, appetite=7, is_hungry=is_hungry)
super().__init__(name, appetite=7)
self.is_hungry = is_hungry

def bring_slippers(self) -> None:
print("The slippers delivered!")
Expand Down

0 comments on commit 4962b69

Please sign in to comment.