PPT-Folie
public NewAccount (String who) // eroeffne Konto
{ account_no = next_acc++ ;
owner = who ; balance = MIN_BALANCE ; }
...
} ; // ConAccount
...
ConAccount a = new ConAccount("Huber") ;
ConAccount b = new ConAccount("Meier") ;
a.deposit(100000) ;
b.deposit(5) ;
Vorherige Folie
Nächste Folie
Zurück zur ersten Folie
Graphik-Version anzeigen