Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module bank
- {
- struct Account
- {
- long accountId;
- double balance;
- string name;
- void setAccountId(in long accountId);
- long getAccountId(out long accountId);
- void setBalance(in long balance);
- long getBalance(out long balance);
- void setName(in string name);
- string getName(out string name);
- };
- typedef sequence <Account> accounts;
- interface Customer
- {
- boolean payIn(out double amount,out long accountId);
- accounts getAccounts(out string name);
- };
- interface Administrator
- {
- void createAccount(in double balance ,in string name);
- boolean deleteAccounts(inout long accountId);
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement