コード例 #1
0
ファイル: Account.cs プロジェクト: diagara/Telerik-Academy
 public Account(Customer customer, decimal balance, decimal interestRate)
 {
     if (balance < 0 || interestRate < 0 || interestRate > 100)
     {
         throw new ArgumentException("Invalid arguments");
     }
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
コード例 #2
0
 protected Account(Customer customer, decimal balance, decimal interestRate)
 {
     this.customer = customer;
     if (balance > 0 && interestRate > 0)
     {
         this.balance = balance;
         this.interestRate = interestRate;
     }
     else
     {
         throw new ArgumentException("Balance and iterested rate must be bigger than 0!");
     }
 }
コード例 #3
0
 public LoanAccount(Customer customer, decimal balance, decimal interestRate)
     : base(customer, balance, interestRate)
 {
 }
コード例 #4
0
ファイル: DepositAcc.cs プロジェクト: abaditsegay/SVN
 public DepositAcc(Customer customer, decimal balance, decimal interestRate)
     : base(customer, balance, interestRate)
 {
 }
コード例 #5
0
ファイル: Account.cs プロジェクト: BlueForeverI/OOPHomework
 public Account(Customer customer, decimal balance, decimal interestRate)
 {
     this.Customer = customer;
     this.Balance = balance;
     this.InterestRate = interestRate;
 }
コード例 #6
0
ファイル: MortgageAcc.cs プロジェクト: abaditsegay/SVN
 public MortgageAcc(Customer customer, decimal balance, decimal interestRate)
     : base(customer, balance, interestRate)
 {
 }