View difference between Paste ID: dndQRD7P and 7uzxMRUm
SHOW: | | - or go back to the newest paste.
1-
module bank
1+
module bank
2-
{
2+
{
3-
struct Account
3+
	struct Account
4-
{
4+
	{
5-
long accountId;
5+
	long accountId;
6-
double balance;
6+
	double balance;
7-
string name;
7+
	string name;
8-
8+
	};
9-
void setAccountId(in long accountId);
9+
10-
long getAccountId(out long accountId);
10+
	typedef sequence <Account> accounts;
11-
11+
12-
void setBalance(in long balance);
12+
	interface Customer
13-
long getBalance(out long balance);
13+
	{
14-
14+
		boolean payIn(in double amount,in long accountId);
15-
void setName(in string name);
15+
		accounts getAccounts(in string name);
16-
string getName(out string name);
16+
	};
17
18-
typedef sequence <Account> accounts;
18+
	interface Administrator
19-
interface Customer
19+
	{
20-
{
20+
		void createAccount(in double balance ,in string name);
21-
boolean payIn(out double amount,out long accountId);
21+
		boolean deleteAccounts(in long accountId);
22-
accounts getAccounts(out string name);
22+
	};
23
};