public Account(TheBank bank, Customer customer, decimal balance, decimal iRate, int mOfContract) { this.BankName = bank; this.Customer = customer; this.Balance = balance; this.InterestRate = iRate; this.interestRate = this.InterestRate / 100; this.StartDate = DateTime.Now; this.MonthsOfContract = mOfContract; accountNumber++; }
public DepositAccount(TheBank bank, Customer customer, decimal balance, decimal iRate, int mOfContract) : base(bank, customer, balance, iRate, mOfContract) { }