Hi,
I have had the same problem for a week right now and I don't seem to be getting the answer I need. I am a beginner in using
Java, this is my first exposure to it and I'm taking a course which I am currently now in
unit 8. A couple units ago I had to write a class named Account to model an account. I was given certain properites and methods to use. I also had to write a client program to test the account class. Below is both my Account class and client program all in one file.
Now two units later I am suppose to use the program and class I wrote and create two subclasses along with two separate test programs to test the subclasses. The two subclasses are savings and chequing account. The savings account which I'm currently working on is suppose to show "Insufficient" funds when someone tries to withdraw too much. As you can see my Account class and testAccountClass program doesn't accept user input. But in my testSavingsClass program can I not have user input without changing my original program and class? I've had people help me by trying to re-write my testaccountclass code to include savings account all in one. I can't do that as my testAccountClass is one assignment that has to be marked separate from my current. I need help with the code, I have no idea how to go about it. I haven't really started on my TestSavingsAccount test program yet because I don't know if I'm even doing my SavingsAccount subclass correct. Can someone please help me I'm ready to give up I just don't know what to do.
Below are the code I have so far, starting with my TestAccountClass which is working fine.
And here is the start of my SavingsAccount subclass code (not the test program):
Please help
Stacey