protected Account(Customer customer, decimal balance, decimal interestRate) { if (balance < 0 || interestRate < 0) { throw new ArgumentOutOfRangeException("Interest rate and balance cannot contain a negative value!"); } else { Client = customer; Balance = balance; Interest = interestRate; } }
public LoanAccount(Customer customer, Decimal balance, Decimal interestRate) : base(customer, balance, interestRate) { }
public DepositAccount(Customer customer, Decimal balance, Decimal withdraw) : base(customer, balance, withdraw) { }