org.objectweb.jotm.examples
Interface Account

All Known Implementing Classes:
AccountImpl

public interface Account

Account is a simple interface that represents a bank account


Method Summary
 int balance()
          Gets account balance.
 void deposit(int value)
          Deposits an amount of money to the bank account.
 void withdraw(int value)
          Withdraws an amount of money from the bank account.
 

Method Detail

balance

public int balance()
Gets account balance.

Returns:
amount of money currently available at the bank account

deposit

public void deposit(int value)
Deposits an amount of money to the bank account.

Parameters:
value - value representing the amount of money

withdraw

public void withdraw(int value)
Withdraws an amount of money from the bank account.

Parameters:
value - value representing the amount of money