コード例 #1
0
ファイル: CurrentAccount.cs プロジェクト: ershovmn/oop
 public CurrentAccount(Client client, double percent, AccountDecorator D)
 {
     this.client = client;
     if (D != null)
     {
         D.Decorate(this);
     }
     this.percent     = percent;
     this.accountType = 1;
 }
コード例 #2
0
 public CreditAccount(Client client, double percent, double commision, AccountDecorator D)
 {
     this.client = client;
     if (D != null)
     {
         D.Decorate(this);
     }
     this.percent     = percent;
     this.commision   = commision;
     this.accountType = 0;
 }
コード例 #3
0
ファイル: DepositAccount.cs プロジェクト: ershovmn/oop
 public DepositAccount(Client client, DateTime endDate, double percent, AccountDecorator D)
 {
     this.client = client;
     if (D != null)
     {
         D.Decorate(this);
     }
     this.percent     = percent;
     this.accountType = 2;
     this.date        = endDate;
 }