So I'm going over Superclasses and they seem simple enough, but the book does a terrible job explaining them. Not only that but looking through google has given me the same answer as in my book. Just worded slightly different.
My question is is a class only considered a superclass when it has another class extending from it? The book also says a class can be a superclass and a subclass at the same time. Does that mean I could have a superclass inside a superclass?
And my final question is if my Superclass is BankAccount with deposit inside of it and I make a class named SavingsAccount extends BankAccount would I be able to do something like
Without moving the deposit class into the SavingsAccount class?Code:mySavings.addAccount(new SavingsAccount(acctnum,inidepo);
mySavings = mySavings.deposit(newDeposit);

