Advertisement
andidegn

Untitled

Oct 31st, 2012
3,325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module bank
  2. {
  3.     struct Account
  4.     {
  5.     long accountId;
  6.     double balance;
  7.     string name;
  8.     };
  9.  
  10.     typedef sequence <Account> accounts;
  11.  
  12.     interface Customer
  13.     {
  14.         boolean payIn(in double amount,in long accountId);
  15.         accounts getAccounts(in string name);
  16.     };
  17.  
  18.     interface Administrator
  19.     {
  20.         void createAccount(in double balance ,in string name);
  21.         boolean deleteAccounts(in long accountId);
  22.     };
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement