summaryrefslogtreecommitdiffstats
path: root/ExampleSubmission/animals.py
blob: d32d6ffdab95f81c0fb0d00664da1aee34d14b84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import datetime

class Animal:
    def __init__(self):
        self.birthday = datetime.datetime.now()

    def move(self):
        return "*moves*"

class Dog(Animal):
    def speak(self):
        return "woof"

class Cat(Animal):
    def speak(self):
        return "meow"

class Kitten(Cat):
    """nyaa~~~
    """
    def speak(self):
        return "meow (but cuter)"

print()