gistfile1.txt �\�۪� �4�۪� // 銀行口座 var BankAccount = function (balance) { this.balance = balance; }; BankAccount.prototype.increase = function (money) { this.balance += money; }; BankAccount.prototype.decrease = function (money) { this.balance -= money; }; // ロール: 送信側 var Sender = function () {}; Sender.prototype.send = function (money, to) { this.decrease(money); to.onReceived(money, this); }; //
