Question: public class AccountHolder { // create instance fields double balance; static double annualInterestRate; // methods of the class // class constructor public AccountHolder (double b)
public class AccountHolder { // create instance fields double balance; static double annualInterestRate; // methods of the class // class constructor public AccountHolder (double b) { } // other methods public void deposit (double b) { } // **** Set the Initial Balance **** // balance = b; } // add to the balance balance += b; public public void withdraw (double b) // WARNING: balance should not be under 50 balance = b; // subtract from the balance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
