Now this is working, I'm making a method to print the name(naam), accountnumber(rekeningnummer) and the amount of money on the account(saldo).
In Bankrekening I have three methods that return these variables. Here's the code for that: