1//Copy constructor
2
3public SavingsAccount(SavingsAccount oldAccount, double amount)
4{
5 super(oldAccount,amount); // <--- SUPER COPY CONSTRUCTOR CALLED
6 savingsNumber++;
7 accountNumber = oldAccount.accountNumber + Integer.toString(savingsNumber);
8}
9