Exemplo n.º 1
0
 public Current(string name, double initialBalance, AccountType_Nature accType) : base(name, initialBalance, accType)
 {
     //this.AccountName = name;
     ////this.AccountNumber = accountNum;
     //this.AccountBalance = initialBalance;
     //this.AccountType = accType;
     this.AccountNumber = "CUR" + (++_autoCurrentAccountNum);
 }
Exemplo n.º 2
0
 public Savings(string name, double initialBalance, AccountType_Nature accType) : base(name, initialBalance, accType)
 {
     //this.AccountName = name;
     ////this.AccountNumber = accountNum;
     //this.AccountBalance = initialBalance;
     //this.AccountType = accType;
     this.AccountNumber = "SAV" + (++_autoSavingsAccountNum);
 }
Exemplo n.º 3
0
 public Accounts(string name, double initialBalance, AccountType_Nature type)
 {
     this.AccountName    = name;
     this.AccountBalance = initialBalance;
     this.AccountType    = type.ToString();
     //this.AccountNumber = accountNum;
     //check all values above for validation and then allocate account number
     //this.AccountNumber = ++_autoAccountNumber;
     //this.AccountNumber = (String.Equals(accType, "Savings") ? "SAV" + (++_autoSavingsAccountNum) : String.Equals(accType, "PF") ? "PF" + (++_autoPFAccountNum) : "CUR" + (++_autoCurrentAccountNum));
 }