// Weather lässt sich auch als Datentyp in einer Typdeklaration verwenden export class Weather { date: string; temp: number; press: number; constructor(temp: number, press: number, date?: string) { this.temp = temp; this.press = press; this.date = (date)?date:(new Date()).toISOString(); } };