Files
MariokartTommy/Fahrzeug.py
T
2026-09-07 11:04:45 +02:00

10 lines
185 B
Python

class Fahrzeug:
def __init__(self, typ):
self.typ = typ
def __str__(self):
return("Ich bin ein " + self.typ)
def fahren(self):
print("Ich fahre.")