Account interface defines the
operations makeDeposit and makeWithdrawal as follows:
module Finance {
interface Account {
// Operations available on the account.
void makeDeposit(in float amount,
out float newBalance);
void makeWithdrawal(in float amount,
out float newBalance);
...
};
};
The possible parameter passing modes are as follows:
inThe parameter is passed from the caller of the operation to the object. outThe parameter is passed from the object to the caller. inoutThe parameter is passed in both directions.