Hi Everyone,
I'm still working on my subclass assigment and only getting more confused from my last posted question. So I'm going to try again cause I need help badly. In my first assigment I had to write a class named "Account" to model accounts, then a client program to
test the account class. I did this all in one file as you will see below. Now I'm being asked to use that program and write two subclasses "Savings Account" and "Chequing Account" and test programs to go with to test them. The difference of the two accounts is that the chequing account has an overdraft allowance and the savings account does not so, if the user withdraws too much "Insufficient" funds will display.
So here is my problem, I'm working on my savings account subclass and I'm lost. In my original account class the user didn't input the amounts to withdraw or deposit, so now I would like to change that and have the user input it. Is this possible without changing the Account class but modifying things in the subclasses and testprograms? Can someone please let me know cause I don't want to have to change everything in my account class. I would like to work with what I have already written so I can learn from it. So if you can help my account class code and the beginning of my Savings Account subclass code are below. Thanks in advance.
Below is my SavingsAccount subclass:
As you can see I'm desperate
.