58 lines
850 B
JavaScript
58 lines
850 B
JavaScript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Main{
|
|
|
|
static main(){
|
|
|
|
/*
|
|
// Konten erstellen
|
|
const studentKonto = new Konto();
|
|
const firmaKonto = new Konto();
|
|
|
|
// Einzahlungen
|
|
studentKonto.einzahlen(500);
|
|
firmaKonto.einzahlen(10000);
|
|
|
|
// Objekte erstellen
|
|
const student = new Student("Frank", "Muster", "123456", "Informatik", studentKonto);
|
|
const firma = new Geschaeftskunde("Max", "Muster", "Tech Solutions GmbH", firmaKonto);
|
|
|
|
// Ausgaben
|
|
console.log(student.toString());
|
|
console.log("Kontostand: " + student.getKontostand() + " €");
|
|
|
|
console.log(firma.toString());
|
|
console.log("Kontostand: " + firma.getKontostand() + " €");
|
|
*/
|
|
}
|
|
}
|
|
|
|
Main.main(); |