Beispiel #1
0
 public InterestCalculator(double money, double interest, double years, CalcInterest interestFunc)
 {
     this.Result = interestFunc(money, interest, years);
 }
Beispiel #2
0
        public InterestCalculator(decimal sum, decimal interest, decimal years, CalcInterest interestType)
        {
            CalcInterest GetInterest = interestType;

            this.Money = GetInterest(sum, interest, years);
        }
 public InterestCalculator(double money, double interest, double years, CalcInterest interestFunc)
 {
     this.Result = interestFunc(money, interest, years);
 }
 public InterestCalculator(decimal sum, decimal interest, decimal years, CalcInterest interestType)
 {
     CalcInterest GetInterest = interestType;
     this.Money = GetInterest(sum, interest, years);
 }