Cécile
Importez java.rmi.Remote ;
importer java.rmi.RemoteException ;
public interface Account
extend Remote {
// Ajout d'une méthode pour renvoyer le maître BankManager
public BankManager getBankManager()
lève RemoteException ;
// Ajout d'une méthode pour renvoyer le client de ce compte
public Client getClient()
lève RemoteException ;
// Ajout d'une méthode pour renvoyer le solde de ce compte
public long getBalance()
lève RemoteException ;
// Ajout d'une méthode pour retirer de l'argent de ce compte
public long getCash (long montant)
lève NoCashAvailableException, RemoteException;
}