1 27 28 package bank; 29 30 import java.math.BigDecimal ; 31 import java.rmi.RemoteException ; 32 33 36 public interface SavingsAccountRemoteBusiness { 37 38 String getId() throws RemoteException ; 39 40 String getFirstName() throws RemoteException ; 41 42 String getLastName() throws RemoteException ; 43 44 void setLastName(String lastName) throws RemoteException ; 45 46 BigDecimal getBalance() throws RemoteException ; 47 48 void credit(BigDecimal credit) throws RemoteException ; 49 50 void debit(BigDecimal amount) throws InsufficientBalanceException, RemoteException ; 51 52 } 53 | Popular Tags |