07.09.2026
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class Fahrzeug:
|
||||
|
||||
def __init__(self, typ):
|
||||
self.typ = typ
|
||||
|
||||
def __str__(self):
|
||||
return("Ich bin ein " + self.typ)
|
||||
|
||||
def fahren(self):
|
||||
print("Ich fahre.")
|
||||
Reference in New Issue
Block a user