{ parent::stort(parent::getSaldo() * self::$intrest); } } ?> <!DOCTYPE HTML> <html> <head> <meta charset=utf-8> <title>Rekeningnummers</title> </head> <body> <h1> <?php $rek = new Zichtrekening("091-0122401-16"); print $rek->getOmschriving() . "<br />"; print "Het saldo is: " . $rek->getSaldo() . "<br />"; $rek->stort(200); print "Het saldo is: " . $rek->getSaldo() . "<br />"; $rek->voerIntrestDoor(); print "Het saldo is: " . $rek->getSaldo() . "<br />"; $rek = new Spaarrekening("091-0122401-16"); print $rek->getOmschriving() . "<br />"; print "Het saldo is: " . $rek->getSaldo() . "<br />"; $rek->stort(100); print "Het saldo is: " . $rek->getSaldo() . "<br />"; $rek->voerIntrestDoor(); print "Het saldo is: " . $rek->getSaldo() . "<br />"; ?> </h1>