public void payInterest() {
   for (BankProduct bp : bankProducts) {
     if (bp instanceof Deposit) {
       bp.setCurrentMoney(bp.getCurrentMoney() + (bp.getCurrentMoney() * bp.getYearlyInterest()));
     }
   }
 }
 public double getAllDepositMoney() {
   for (BankProduct bp : bankProducts) {
     if (bp instanceof Deposit) {
       allDepositMoney += bp.getCurrentMoney();
     }
   }
   return allDepositMoney;
 }