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); }
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); }