Professional Documents
Culture Documents
Data Structure
Lab 3 (Array and Inheritance)
Question
1
• toString() method that overrides the method in the Account base
class.
3. In the BankSystem class (Main class for testing the bank system), test
the following methods on the johnsAccount object: depostie(), addIn-
terst(), and withdraw(). Following these operations, output the state
(print) of johnsAccount to the console.