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.
16 lines
377 B
16 lines
377 B
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)
|
|
|
|
|