Copy constructor/Inheritance help

starting to deeply learn Java at my school, and I have finally hit my wall where I have no idea where I'm going wrong. I will list 4 classes, one is the AccountDriver or main method, BankAccount, the parent class which CheckingAccount and SavingsAccount are derived from. Now my issue is in SavingsAccount. Here is the code...

So my issues are listed with the stars and I have spent 2 hours trying different methods either getting same or worse results. Hopefully someone can point out where I'm going wrong. Also note that I can not change AccountDriver or BankAccount. Only the classes I create (CheckingAccount and SavingsAccount) can be edited. Thanks a bunch guys.

Re: Copy constructor/Inheritance help

Have you tried debugging the code by adding lots of println statements that print out the values of variable as they are set and changed so you can see what the computer sees when it executes the code?
That is what I would do if I tried to debug this code.

Re: Copy constructor/Inheritance help

You don't call the parent constructor that takes the name and amount, so they never get set.
That's the easy bit.

Note in the background the no-argument constructor for BankAccount is still called, which increments numberOfAccounts, which explains why the next new account is 100004 and not 100003.
This is the area you probably need to look at. There's hacky fixes for the current setup, but you need to think first off how you want the account number to function then model that.