For this Programming activity, you will create the SavingAccount class, which inherits directly

profileThehonest
 (Not rated)
 (Not rated)
Chat

For this Programming activity, you will create the SavingAccount class, which inherits directly from the BankAccount class.

 

 

 

Bank Account Class

 

/**   BankAccount class, version 1

*     Anderson, Franceschi

*     Represents a generic bank account

*/

import java.text.DecimalFormat;

 

public class BankAccount

{

  public final DecimalFormat MONEY

                  = new DecimalFormat( “$#,##0.00” );

  private double balance;

………………………………………

After you write your program answer the following questions.

Explain why the Teller application can call the withdraw and deposit methods using a SavingsAccount object reference, even though we did not define these methods.

Explain why your applyInterest method in the SavingAccount class needs to call the deposit method of the BankAccount class.

 

 

    • 10 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      savingsaccount.zip