You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
377 B
17 lines
377 B
2 years ago
|
from anschrift import Anschrift
|
||
|
|
||
|
class Person:
|
||
|
# Konstruktor
|
||
|
def __init__(self,vorname, name,strasse,hausnummer, plz,ort):
|
||
|
self.vorname = vorname
|
||
|
self.name = name
|
||
|
self.anschrift = Anschrift(strasse,hausnummer,plz,ort)
|
||
|
|
||
|
|
||
|
def format(self):
|
||
|
|
||
|
return self.vorname + ' ' + self.name
|
||
|
def __str__(self):
|
||
|
return self.format() + '\n' + str(self.anschrift)
|
||
|
|