Help with calculator

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

1 Like

Where do you think you would use closures?

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.