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