I have a Java class called Game which has a non-static integer called score.
I would like to implement a static method which would increase the score of each Game object by 1, named increaseAllScore(). Is this possible? Could I simulate something like this or is there any way around this?
You could do it with an implementation like this: