blob: 0dfa5b35efa6255c0803387cba9115209e14d955 [file]
interface BankOne {
/**
* return the current balance in account 'account'.
*/
double getBalance(int account);
/**
* debit 'amount' to account 'account' and return the new balance.
*/
double debit(int account, double amount);
/**
* credit 'amount' to account 'account' and return the new balance.
*/
double credit(int account, double amount);
}