| AccountIntf.java |
1 /*
2 * @(#) $Id: AccountIntf.java,v 1.2 2003/07/08 08:13:53 pankaj Exp $
3 *
4 * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net).
5 * All rights reserved.
6 *
7 * The license governing the use of this file can be found in the
8 * root directory of the containing software.
9 */
10package org.jstk.example.bank;
11
12import java.math.BigDecimal;
13
14public interface AccountIntf {
15 public void deposit(BigDecimal amt) throws Exceptions.AccountClosed;
16 public void withdraw(BigDecimal amt) throws Exceptions.AccountClosed, Exceptions.InsufficientAmount;
17 public void close() throws Exceptions.AccountClosed;
18 public BigDecimal getBalance() throws Exceptions.AccountClosed;
19 public String getAcctNo();
20 public String getStatement();
21}