/** A bank account class.
*/
public class BankAccount {
/** The current balance in the account. */
private double balance;
/** Constructor -- Create a new bankaccount.
* A free prize is given to new customers.*/
public BankAccount() {
balance = 5.00; //special for October only
}
/* Return the current balance amount.*/
public double getBalance() {
return balance;
}
/* Make a depost of a given amount.*/
public void makeDeposit(double amountToAdd) {
balance = balance + amountToAdd;
}
} //end of the BankAccount class