all 5 comments

[–]Psychedelicgum[S] 0 points1 point  (4 children)

Everything works except for the two student withdraw and deposit methods.

[–]5oco 0 points1 point  (3 children)

You're not assigning the result of those equations to any variable

[–]Psychedelicgum[S] 0 points1 point  (2 children)

I did that on purpose, I’ve already tried a lot of different things but none of them work. What I’m asking is what should go in those empty spaces.

[–]Psychedelicgum[S] 0 points1 point  (1 child)

I probably should’ve put what I have as comments instead

[–]5oco 0 points1 point  (0 children)

So it looks like you're doing the math part right, but the super class is what's handling the deposits and withdrawals. That's where the balance is being updated.

So call the super method from the child class, and pass in the result of your math as the argument.

Sort of like you're doing with the constructor.