Increment within class

I’ve tried to put the variables in the constructor but had some issues like w cannot be resolved as a variable or w doesn’t extist, etc. It got messy in my head.

I think i’ll make a simpler exercise to understand better how the class variable works and then come back to this.

Thank you very much for your help.

1 Like