In 2010, cats took control of the Internet, and in 3258 they achieved a soft coup of Planet PurPurr, which is at the center of the Galaxy Rush planetary system. A coup is soft when no one is against it. There was one problem: there were a lot of cats, and despite their dominant position, they essentially don't know how to count. Let's help them with a counter.
Cats in the Universe
You must be signed in to leave a comment
5 January 2022, 20:09
There is something I do not understand. I thought that a static class cannot be instantiated. So shouldn't the line: Cat cat1 = new Cat(); be wrong???
12 April 2021, 03:36
Though im confused a bit using the "this" keyword, I got this right on the first try without help so i am learning something.
4 May 2020, 15:13
I think, in this task a better way is to generate constructor that increase variable by one every time when instance of the class is made
15 January 2020, 22:55
I just repeatbelow each objects. I pass the task but for me it doesn't make sense. The code does not actually count the number of objects. It's ME that counts. must be somehow linked to the created object but I don't know how to do that.
9 March 2021, 21:47
Need to make sure the variable is declared the same.
11 March 2021, 21:11
21 June 2019, 22:21
The word public & count++ play large part in task
15 February 2019, 17:59
pull from method.. cat1.variable cat2.variable