Explain why the teller application can call the withdraw


Assignment

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.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Explain why the teller application can call the withdraw
Reference No:- TGS01702165

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)