Interface HasBalance

All Known Implementing Classes:
BankAccount, CheckingAccount, SavingsAccount

public interface HasBalance


Method Summary
 double getBalance()
          Returns the current balance of this object.
 void printBalance()
          Prints the current balance of this object to the screen.
 

Method Detail

getBalance

double getBalance()
Returns the current balance of this object.

Returns:
Current balance

printBalance

void printBalance()
Prints the current balance of this object to the screen. Output should normally be: [Class name] has balance [current balance].