Question: Create the base Account class along with inherited Checking and Savings account according to diagram. The Account class withdraw method is implemented by doing nothing.
Account -id: int -balance: double +Account() +Account(id: int, balance: double) +setBalance(balance:double):void +getBalanceO:double +setld(id:int):void +getldO:int +deposit(amount:doube): void +withdraw(amount:double):void +toString:Strin CheckingAccount +withdraw(amount:double):void +toStringQ:strin SavingAccount -interestRate: double +setlnterestRate(rate:double):void +getlnterestRate0:double +withdraw(amount:double):void addlnterest0:void +toString0:striin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
