summaryrefslogtreecommitdiffstats
path: root/ExampleSubmission/animals.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-01-17 19:47:01 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2022-01-17 19:47:01 +0000
commit06ec17c5e65d03ffd14a60ce89fe71234eb81c8a (patch)
tree89f52069d6b39b387f8644cd83a4f70c02180e58 /ExampleSubmission/animals.py
parent37236fdc957f5900f6a4bbffbff6ccc07d412c44 (diff)
downloadSmarker-06ec17c5e65d03ffd14a60ce89fe71234eb81c8a.tar.gz
Smarker-06ec17c5e65d03ffd14a60ce89fe71234eb81c8a.zip
added getting class inheritance tree, getting method args nicely, fixed bug with importing too many modules
Diffstat (limited to 'ExampleSubmission/animals.py')
-rw-r--r--ExampleSubmission/animals.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/ExampleSubmission/animals.py b/ExampleSubmission/animals.py
new file mode 100644
index 0000000..10c1cb4
--- /dev/null
+++ b/ExampleSubmission/animals.py
@@ -0,0 +1,22 @@
+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)"