js-praesentation-devcontainer/06-OOP-Bankensystem/Bankensystem.js

56 lines
896 B
JavaScript

//TODO: Bitte ab hier die Klassen implementieren
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();