Beispiel #1
0
 public CurrentAccount(Client client, double percent, AccountDecorator D)
 {
     this.client = client;
     if (D != null)
     {
         D.Decorate(this);
     }
     this.percent     = percent;
     this.accountType = 1;
 }
Beispiel #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;
 }
Beispiel #3
0
 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;
 }