Esempio n. 1
0
 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;
     }
 }
Esempio n. 2
0
 public LoanAccount(Customer customer, Decimal balance, Decimal interestRate)
     : base(customer, balance, interestRate)
 {
 }
Esempio n. 3
0
 public DepositAccount(Customer customer, Decimal balance, Decimal withdraw)
     : base(customer, balance, withdraw)
 {
 }