Question: I only want the SavingAccount Class please In this exercise you will build a simple banking system according the design shown in Figure 1. Bank

 I only want the SavingAccount Class please In this exercise youwill build a simple banking system according the design shown in Figure

I only want the SavingAccount Class please

In this exercise you will build a simple banking system according the design shown in Figure 1. Bank BankAccount accountNo: number accounts : BankAccount[] getAccount(accountNo: number): BankAccount delete Account(accountNo: number) avgBalance(): number sum Balance(): number serialize(): string deserialize(accounts Json: string): BankAccount[] balance number deposit(amount number) withdraw(amount: number) toString() Saving Account CurrentAccount minBalance: number monthlyFee : number distribute Benefit(benefitPercentage : number) toString() deductFeel) toString() Figure 1. Banking System Class Diagram 3) Create SavingAccount class that extends BankAccount with an extra property: minBalance and an extra method distributeBenefit(benefit Percentage). This method computes the monthly benefit using the balance += (balance * benefitPercentage). The constructor should extend BankAccount to initialize the minBalance, Also, extend the toString) to indicate that this is a Saving Account. e.g., e.g., Saving Account #123 has QR1000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!