added einkaufsliste
This commit is contained in:
9
01_Python_Jupyter/code/00/main.py
Normal file
9
01_Python_Jupyter/code/00/main.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class Animal:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def speak(self):
|
||||
return f'{self.name} says something'
|
||||
class Dog(Animal):
|
||||
def speak(self):
|
||||
return f'{self.name} barks'
|
||||
Reference in New Issue
Block a user