1.Explain why the Teller application can call the withdraw and depositmethods using a
SavingsAccount object reference,even though we did not define these methods.
2.Explain why your applyInterest method in the SavingsAccount class needs to call the
deposit method of the BankAccount class.
?
■
Display Account Information—calls your toStringmethod and dis-
plays the result in a dialog box
■
Exit—exits the program.
Figure 10.11 shows the Teller window after several operations have been
performed.
10.5Abstract Classes and Methods
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.