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:
in
The parameter is passed from the caller of the operation to the object. out
The parameter is passed from the object to the caller. inout
The parameter is passed in both directions.