コード例 #1
0
 public BankAccount(string firstName, string lastName, int sSN, string type, double deposit)
 {
     this.FirstName = firstName;
     this.LastName  = lastName;
     this.SSN       = sSN;
     this.Type      = type;
     this.Deposit   = deposit;
     this.DAN       = DANCreator.GenerateDAN(this).ToString();
     interestRate   = 3;
 }
コード例 #2
0
 public CheckingAccount(string firstName, string lastName, int sSN, string type, double deposit) : base(firstName, lastName, sSN, type, deposit)
 {
     DebitCardNumber = Int64.Parse(DANCreator.GenerateRandomNumberLength(12));
     DebitCardPin    = int.Parse(DANCreator.GenerateRandomNumberLength(4));
 }
コード例 #3
0
 public SavingsAccount(string firstName, string lastName, int sSN, string type, double deposit) : base(firstName, lastName, sSN, type, deposit)
 {
     DepositBoxNumber   = int.Parse(DANCreator.GenerateRandomNumberLength(3));
     DepositBoxPassword = int.Parse(DANCreator.GenerateRandomNumberLength(4));
     interestRate      -= 0.25;
 }