Help with calculator

Help with calculator
0

#1

Hi all,

I have been working for weeks in the calculator and I can’t make it work because the way I do it. The thing is I beleave I can do it using closures, but I still can’t how to use them.

In my exercise, I have created a class called “Calc”. Here is the code:

thank you in advance


#2

Where do you think you would use closures?


#3

Well,

Because I am not using arrays, I need that kind of function that can be called with a variable number of arguments, but not really sure.