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; }
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)); }
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; }