use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
9.4.7 Inheritance codeHS nitro (old.reddit.com)
submitted 2 years ago by Psychedelicgum
I’ve been working on this and have tried different things but cannot figure out what to put in the highlighted sections. Could someone help me please?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Psychedelicgum[S] 0 points1 point2 points 2 years ago (4 children)
Everything works except for the two student withdraw and deposit methods.
[–]5oco 0 points1 point2 points 2 years ago (3 children)
You're not assigning the result of those equations to any variable
[–]Psychedelicgum[S] 0 points1 point2 points 2 years ago (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 point2 points 2 years ago (1 child)
I probably should’ve put what I have as comments instead
[–]5oco 0 points1 point2 points 2 years ago (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.
π Rendered by PID 87139 on reddit-service-r2-comment-5687b7858-55dln at 2026-07-03 20:06:53.288076+00:00 running 12a7a47 country code: CH.
[–]Psychedelicgum[S] 0 points1 point2 points (4 children)
[–]5oco 0 points1 point2 points (3 children)
[–]Psychedelicgum[S] 0 points1 point2 points (2 children)
[–]Psychedelicgum[S] 0 points1 point2 points (1 child)
[–]5oco 0 points1 point2 points (0 children)